[Bug tree-optimization/87925] [missed-optimization] Distinct-value if-then-else chains treated differently than switch statements

2018-11-09 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87925 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/87925] [missed-optimization] Distinct-value if-then-else chains treated differently than switch statements

2018-11-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87925 --- Comment #6 from Martin Liška --- (In reply to Eyal Rozenberg from comment #5) > (In reply to Martin Liška from comment #3) > > Currently we only do switch -> balanced decision tree (read series of > > if-then-else statements). Well

[Bug tree-optimization/87925] Missed optimization: Distinct-value if-then-else chains treated differently than switch statements

2018-11-08 Thread eyalroz at technion dot ac.il
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87925 --- Comment #5 from Eyal Rozenberg --- (In reply to Martin Liška from comment #3) > Currently we only do switch -> balanced decision tree (read series of > if-then-else statements). Well definitely a potentially enhancement, > question is

[Bug tree-optimization/87925] Missed optimization: Distinct-value if-then-else chains treated differently than switch statements

2018-11-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87925 --- Comment #4 from Martin Liška --- (In reply to Eyal Rozenberg from comment #0) > Have a look at this GodBolt example: https://gcc.godbolt.org/z/zR03rA > > On one hand, we have: > > void foo(int i) { > switch (i) { >

[Bug tree-optimization/87925] Missed optimization: Distinct-value if-then-else chains treated differently than switch statements

2018-11-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87925 Martin Liška changed: What|Removed |Added Severity|normal |enhancement --- Comment #3 from Martin

[Bug tree-optimization/87925] Missed optimization: Distinct-value if-then-else chains treated differently than switch statements

2018-11-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87925 Richard Biener changed: What|Removed |Added Keywords||missed-optimization