PR14904: Segmentation fault running pass 'Recognize loop idioms'
authorShuxin Yang <shuxin.llvm@gmail.com>
Thu, 10 Jan 2013 23:32:01 +0000 (23:32 +0000)
committerShuxin Yang <shuxin.llvm@gmail.com>
Thu, 10 Jan 2013 23:32:01 +0000 (23:32 +0000)
commit253449db20f86b655852a397245ba16ff262452f
tree19a6a9e95b5f8fe231cffccba48b5c115492a6ca
parent582e4f278b95d50a45c6f56e33da5e78c19afc17
PR14904: Segmentation fault running pass 'Recognize loop idioms'

The root cause is mistakenly taking for granted that
    "dyn_cast<Instruction>(a-Value)"
return a non-NULL instruction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172145 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
test/Transforms/LoopIdiom/X86/popcnt.ll