After trivial coalescing, the MI being visited may have become a copy. Avoid adding...
authorEvan Cheng <evan.cheng@apple.com>
Fri, 2 Apr 2010 02:21:24 +0000 (02:21 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 2 Apr 2010 02:21:24 +0000 (02:21 +0000)
commitdb8771af286bc84267e7b5bd17eab51cd4ea552f
tree2c677d60e37c1f22f63a26a354e5536357608089
parent93d6a7e9c21204c52d6efec6c672163e7de79660
After trivial coalescing, the MI being visited may have become a copy. Avoid adding it to CSE hash table since copies aren't being considered for CSE and they may be deleted.
rdar://7819990

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100170 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineCSE.cpp
test/CodeGen/PowerPC/2010-04-01-MachineCSEBug.ll [new file with mode: 0644]