forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tree-optimization/94103 avoid CSE of loads with padding
VN currently replaces a load of a 16 byte entity 128 bits of precision (TImode) with the result of a load of a 16 byte entity with 80 bits of mode precision (XFmode). That will go downhill since if the padding bits are not actually filled with memory contents those bits are missing. 2020-03-12 Richard Biener <[email protected]> PR tree-optimization/94103 * tree-ssa-sccvn.c (visit_reference_op_load): Avoid type punning when the mode precision is not sufficient. * gcc.target/i386/pr94103.c: New testcase.
- Loading branch information
Showing
4 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
2020-03-12 Richard Biener <[email protected]> | ||
|
||
PR tree-optimization/94103 | ||
* tree-ssa-sccvn.c (visit_reference_op_load): Avoid type | ||
punning when the mode precision is not sufficient. | ||
|
||
2020-03-12 H.J. Lu <[email protected]> | ||
|
||
PR target/89229 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
2020-03-12 Richard Biener <[email protected]> | ||
|
||
PR tree-optimization/94103 | ||
* gcc.target/i386/pr94103.c: New testcase. | ||
|
||
2020-03-12 Tobias Burnus <[email protected]> | ||
|
||
PR middle-end/94120 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* { dg-do run { target lp64 } } */ | ||
/* { dg-options "-O3" } */ | ||
|
||
int main() | ||
{ | ||
long double x; | ||
unsigned long u[2] = {0xEEEEEEEEEEEEEEEEUL, 0xEEEEEEEEEEEEEEEEUL}; | ||
__builtin_memcpy(&x, &u, sizeof x); | ||
__builtin_memcpy(&u, &x, sizeof u); | ||
++*(unsigned char *)&x; | ||
(void)-x; | ||
__builtin_memcpy(&u, &x, sizeof u); | ||
if (u[1] != 0xEEEEEEEEEEEEEEEEUL | ||
|| u[0] != 0xEEEEEEEEEEEEEEEFUL) | ||
__builtin_abort (); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters