summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/CloneFunction.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-05-11 22:33:01 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-05-11 22:33:01 +0000
commit78a4eb844bd9263acea0b42c5bd2b55eaa204f6a (patch)
treec048241844073f53c7e960a5a088b1a8893d1cd5 /llvm/lib/Transforms/Utils/CloneFunction.cpp
parente92449e4cc9e5dc8fa8c556d35fec21528e8149c (diff)
downloadbcm5719-llvm-78a4eb844bd9263acea0b42c5bd2b55eaa204f6a.tar.gz
bcm5719-llvm-78a4eb844bd9263acea0b42c5bd2b55eaa204f6a.zip
Teach LSR to optimize more loop exit compares, i.e. change them to use postinc iv value. Previously LSR would only optimize those which are in the loop latch block. However, if LSR can prove it is safe (and profitable), it's now possible to change those not in the latch blocks to use postinc values.
Also, if the compare is the only use, LSR would place the iv increment instruction before the compare instead in the latch. llvm-svn: 71485
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud