Avoid sinking machine instructions into a loop.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 15 Apr 2010 23:41:02 +0000 (23:41 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 15 Apr 2010 23:41:02 +0000 (23:41 +0000)
commit626f3d7a57f4f2a46880331fdacce259195213ef
treeff19226438a4a142785764663d212d2666ef299a
parentcd52932dce81d9578039565dd836a340b7bb2c63
Avoid sinking machine instructions into a loop.

MachineLoopInfo is already available when MachineSinking runs, so the check is
free.

There is no test case because it would require a critical edge into a loop, and
CodeGenPrepare splits those. This check is just to be extra careful.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101420 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineSink.cpp