DependenceAnalysis: Don't crash if there is no constant operand.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 31 Oct 2012 09:20:38 +0000 (09:20 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 31 Oct 2012 09:20:38 +0000 (09:20 +0000)
commit061938b90b1addc3c3269bdbfeae1029f0c05a43
treeb91e5255365c70dd69bdee448b3f4c916d0a19c4
parent296815dccee4f5392855c829b8a9e4a661b83a42
DependenceAnalysis: Don't crash if there is no constant operand.

This makes the code match the comments. Resolves a crash in loop idiom (PR14219).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167110 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/DependenceAnalysis.cpp
test/Transforms/LoopIdiom/crash.ll [new file with mode: 0644]