Prevent hoisting the instruction whose def might be clobbered by the terminator.
authorSasa Stankovic <Sasa.Stankovic@imgtec.com>
Thu, 5 Jun 2014 13:42:48 +0000 (13:42 +0000)
committerSasa Stankovic <Sasa.Stankovic@imgtec.com>
Thu, 5 Jun 2014 13:42:48 +0000 (13:42 +0000)
commit44215458bd5298d9426373fc07d6492dc3d4d8cd
tree7b1c275b4b3d4c48c71dc9fafc6c6f59be9f8e46
parent3a2156d1b5867b69625994f394d66511a5f4192d
Prevent hoisting the instruction whose def might be clobbered by the terminator.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210261 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BranchFolding.cpp
test/CodeGen/Mips/prevent-hoisting.ll [new file with mode: 0644]