[Bug rtl-optimization/94026] combine missed opportunity to simplify comparisons with zero

2020-03-20 Thread wdijkstr at arm dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94026 Wilco changed: What|Removed |Added CC||wdijkstr at arm dot com --- Comment #5 from

[Bug rtl-optimization/94026] combine missed opportunity to simplify comparisons with zero

2020-03-15 Thread felix.yang at huawei dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94026 --- Comment #4 from Fei Yang --- (In reply to Fei Yang from comment #0) > Created attachment 47966 [details] > proposed patch to fix this issue > > Simple test case: > int > foo (int c, int d) > { > int a = (c >> d) & 7; > > if (a >= 2) {

[Bug rtl-optimization/94026] combine missed opportunity to simplify comparisons with zero

2020-03-12 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94026 --- Comment #3 from Andrew Pinski --- I think part of this optimization should be done on the tree level.

[Bug rtl-optimization/94026] combine missed opportunity to simplify comparisons with zero

2020-03-12 Thread felix.yang at huawei dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94026 --- Comment #2 from Fei Yang --- The test case is reduced from spec2017 benchmark. int FastBoard::count_pliberties(const int i) { return count_neighbours(EMPTY, i); } // count neighbours of color c at vertex v int

[Bug rtl-optimization/94026] combine missed opportunity to simplify comparisons with zero

2020-03-04 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94026 Richard Biener changed: What|Removed |Added Keywords||missed-optimization --- Comment #1