summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocLinearScan.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-10-30 06:24:33 +0000
committerChris Lattner <sabre@nondot.org>2005-10-30 06:24:33 +0000
commitf0b77f9accf9d765f27802570ed0b0ec036db1bc (patch)
tree50f753b4db2ca64b52f810efe7025ee5fa0abc10 /llvm/lib/CodeGen/RegAllocLinearScan.cpp
parent67315dc8887ae89ca0c5e6d0990291ae0168f3c4 (diff)
downloadbcm5719-llvm-f0b77f9accf9d765f27802570ed0b0ec036db1bc.tar.gz
bcm5719-llvm-f0b77f9accf9d765f27802570ed0b0ec036db1bc.zip
Fix a problem that Nate noticed with LSR:
When inserting code for an addrec expression with a non-unit stride, be more careful where we insert the multiply. In particular, insert the multiply in the outermost loop we can, instead of the requested insertion point. This allows LSR to notice the mul in the right loop, reducing it when it gets to it. This allows it to reduce the multiply, where before it missed it. This happens quite a bit in the test suite, for example, eliminating 2 multiplies in art, 3 in ammp, 4 in apsi, reducing from 1050 multiplies to 910 muls in galgel (!), from 877 to 859 in applu, and 36 to 30 in bzip2. This speeds up galgel from 16.45s to 16.01s, applu from 14.21 to 13.94s and fourinarow from 66.67s to 63.48s. This implements Transforms/LoopStrengthReduce/nested-reduce.ll llvm-svn: 24102
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLinearScan.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud