[Bug tree-optimization/102872] If statement is always false but not figured out at gimple level

2022-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102872 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |13.0

[Bug tree-optimization/102872] If statement is always false but not figured out at gimple level

2022-10-13 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102872 Andrew Macleod changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug tree-optimization/102872] If statement is always false but not figured out at gimple level

2022-10-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102872 --- Comment #5 from CVS Commits --- The master branch has been updated by Andrew Macleod : https://gcc.gnu.org/g:6cc3394507a2303a18891d34222c53f679256c37 commit r13-3281-g6cc3394507a2303a18891d34222c53f679256c37 Author: Andrew MacLeod Date:

[Bug tree-optimization/102872] If statement is always false but not figured out at gimple level

2021-11-22 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102872 --- Comment #4 from Richard Biener --- ifcombine makes optimizing two comparisons to _13 Merging blocks 3 and 4 to [local count: 955630225]: d_10 = (short unsigned int) a.3_5; _9 = a.3_5 & 65535; _2 = d_10 != 0; _1 = _9 == 0; _13

[Bug tree-optimization/102872] If statement is always false but not figured out at gimple level

2021-11-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102872 --- Comment #3 from Andrew Pinski --- I wonder if we should just do this: (for neeq (ne eq) (simplify (neeq (convert:s @0) integer_zerop@1) (with { tree inside_type = TREE_TYPE (@0); tree outer_type = TREE_TYPE (@1); }

[Bug tree-optimization/102872] If statement is always false but not figured out at gimple level

2021-10-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102872 Richard Biener changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug tree-optimization/102872] If statement is always false but not figured out at gimple level

2021-10-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102872 --- Comment #1 from Andrew Pinski --- Note this does not get optimized at the rtl level on all targets either, e.g. aarch64 we get: tst w0, 65535 and w0, w0, 65535 ccmpw0, 0, 4, eq beq .L3