Fix a crash in LSR replaceCongruentIVs.
authorAndrew Trick <atrick@apple.com>
Sun, 6 Jan 2013 05:59:39 +0000 (05:59 +0000)
committerAndrew Trick <atrick@apple.com>
Sun, 6 Jan 2013 05:59:39 +0000 (05:59 +0000)
commitc6b4936a59234704b788532de36d860f14b45e82
tree423a4ad230e980020a311f10a1f6d666f0368aac
parent46418797cd3b24ddf92240eab76f52bc7ac72d9d
Fix a crash in LSR replaceCongruentIVs.

Indirect branch in the preheader crashes replaceCongruentIVs.
Fixes rdar://12910141.

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