[Bug tree-optimization/26270] missed vrp optimization with unsigned comparison

2016-03-15 Thread amodra at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26270 Alan Modra changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/26270] missed vrp optimization with unsigned comparison

2006-02-13 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-02-13 23:59 --- (In reply to comment #1) > f1 in the following is optimized to f2 > but f3 isn't seen as equivalent to f4 These are because fold is not recalled on the full expression a < CST0 && a + CST1 < CST0. Confirmed. --

[Bug tree-optimization/26270] missed vrp optimization with unsigned comparison

2006-02-13 Thread amodra at bigpond dot net dot au
--- Comment #1 from amodra at bigpond dot net dot au 2006-02-13 23:53 --- f1 in the following is optimized to f2 int f1 (unsigned long offset) { return offset < 0x100 && offset + 4 < 0x100; } int f2 (unsigned long offset) { return offset < 0xfc; } but f3 isn't seen as equivalent