Don't delete asm's just because their inputs are undefined;
authorDale Johannesen <dalej@apple.com>
Tue, 14 Jul 2009 00:45:38 +0000 (00:45 +0000)
committerDale Johannesen <dalej@apple.com>
Tue, 14 Jul 2009 00:45:38 +0000 (00:45 +0000)
commit4458ab0d83c33a649c61355a4d80e94014193856
treee0a43bf94fd3e8633ca24eb61cc7e77289180c5d
parentd9ef1a860e01321cacbd57b6f7c154f399c813d4
Don't delete asm's just because their inputs are undefined;
xor R, R is a common and valid idiom for zeroing a register, for example.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75571 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SimplifyCFGPass.cpp
test/Transforms/SimplifyCFG/2009-07-13-no-delete-asm.ll [new file with mode: 0644]