aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-unswitch.c
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@kernel.crashing.org>2017-11-28 02:28:57 +0100
committerSegher Boessenkool <segher@gcc.gnu.org>2017-11-28 02:28:57 +0100
commitb8adcbd9236598e066fba8e8e31a2e2d40521698 (patch)
treee4a556655ee698d12a0b865909e8cbb89dcd522b /gcc/tree-ssa-loop-unswitch.c
parentfd8bf76c908297f96f240954c43732579bb95105 (diff)
downloadgcc-b8adcbd9236598e066fba8e8e31a2e2d40521698.zip
gcc-b8adcbd9236598e066fba8e8e31a2e2d40521698.tar.gz
gcc-b8adcbd9236598e066fba8e8e31a2e2d40521698.tar.bz2
rs6000: Improve comparison rtx_cost (PR81288)
The current rs6000 rtx_cost for comparisons against 0 is very high if TARGET_ISEL && !TARGET_MFCRF, much higher than for reg-reg comparisons, much higher than a load of 0 and such a reg-reg-comparison. This leads to infinite recursion in CSE (see PR81288). This patch removes the too-high cost, also simplifying this code. PR 81288/target * config/rs6000/rs6000.c (rs6000_rtx_costs): Do not handle TARGET_ISEL && !TARGET_MFCRF differently. Simplify code. From-SVN: r255188
Diffstat (limited to 'gcc/tree-ssa-loop-unswitch.c')
0 files changed, 0 insertions, 0 deletions