[InstCombine] Don't RAUW tokens with undef
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 6 Nov 2015 21:26:32 +0000 (21:26 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 6 Nov 2015 21:26:32 +0000 (21:26 +0000)
commit16261dd30c64dac41bfaf6788bac94e6e4877975
treee44c2253f18d443fc581e306637ba83a11922984
parentb418909313e586ddb300aa429db9616518bb73c4
[InstCombine] Don't RAUW tokens with undef

Let SimplifyCFG remove unreachable BBs which define token instructions.

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