Fix PR18165: LSR must avoid scaling factors that exceed the limit on truncated use.
authorAndrew Trick <atrick@apple.com>
Wed, 26 Feb 2014 16:31:56 +0000 (16:31 +0000)
committerAndrew Trick <atrick@apple.com>
Wed, 26 Feb 2014 16:31:56 +0000 (16:31 +0000)
commit401d35bedb0c5df2ff6a456c150dc5cdd818bf4e
treeae3b28cf0e726d4d4b2829314e8f35827d80ef16
parent12c9f92bb18a7ac8b8915645e915e8e48415e757
Fix PR18165: LSR must avoid scaling factors that exceed the limit on truncated use.

Patch by Michael Zolotukhin!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202273 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/Transforms/LoopStrengthReduce/pr18165.ll [new file with mode: 0644]