OSDN Git Service

Fix LSR compile time.
authorAndrew Trick <atrick@apple.com>
Sat, 25 Oct 2014 19:42:07 +0000 (19:42 +0000)
committerAndrew Trick <atrick@apple.com>
Sat, 25 Oct 2014 19:42:07 +0000 (19:42 +0000)
commitabb11dd3036379168519d22e56ae5d09e1438611
tree9ad706becd579caf4a6eb94a04a136d272641b3f
parent2e643bbeae14daf966b093598b7e4c0b580fa485
Fix LSR compile time.

This is a simple fix that brings the compilation time from 5min to 5s
on a specific real-world example. It's a large chain of computation in
a crypto routine (always a problem for SCEV). A unit test is not
feasible and there would be no way to check it. The fix is just basic
good practice for dealing with SCEVs, there's no risk of regression.

Patch by Daniel Reynaud!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220622 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp