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)
commit24c643b6dea6811563c371fd1a8601380cafa257
tree7bec1defbe7665d9c760c81344b4fd76f6eb6f8e
parent2f728a918552d156398a40baa5dd0baa1e53c1b3
DependenceAnalysis: Don't crash if there is no constant operand.

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

llvm-svn: 167110
llvm/lib/Analysis/DependenceAnalysis.cpp
llvm/test/Transforms/LoopIdiom/crash.ll [new file with mode: 0644]