[Bug tree-optimization/57600] Turn 2 comparisons into 1 with the min

2015-12-15 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57600 Marc Glisse changed: What|Removed |Added Status|NEW |RESOLVED Known to work|

[Bug tree-optimization/57600] Turn 2 comparisons into 1 with the min

2015-06-19 Thread alalaw01 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57600 alalaw01 at gcc dot gnu.org changed: What|Removed |Added CC||alalaw01 at gcc dot gnu.org

[Bug tree-optimization/57600] Turn 2 comparisons into 1 with the min

2015-06-19 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57600 --- Comment #6 from Marc Glisse glisse at gcc dot gnu.org --- (In reply to alalaw01 from comment #5) Can you give an example where it not only doesn't help, but actually hurts? I don't remember at all what I was talking about. I can imagine

[Bug tree-optimization/57600] Turn 2 comparisons into 1 with the min

2013-06-13 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57600 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

[Bug tree-optimization/57600] Turn 2 comparisons into 1 with the min

2013-06-13 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57600 --- Comment #2 from Marc Glisse glisse at gcc dot gnu.org --- The main difficulty is deciding when this transformation is a good idea. A priori abac can be faster than amin(b,c). Good cases: - if there is a min insn (like minsd for double on

[Bug tree-optimization/57600] Turn 2 comparisons into 1 with the min

2013-06-13 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57600 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added CC||jakub at gcc dot

[Bug tree-optimization/57600] Turn 2 comparisons into 1 with the min

2013-06-13 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57600 --- Comment #4 from Marc Glisse glisse at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #3) Perhaps we want to perform it just during ifcvt once it is rolled into vectorizer and works on an on-the-side bb? Then it wouldn't affect