[llvm-commits] [llvm] r64585 - in /llvm/branches/Apple/Dib: lib/CodeGen/MachineSink.cpp test/CodeGen/X86/pr3522.ll
Bill Wendling
isanbard at gmail.com
Sun Feb 15 03:28:01 PST 2009
Author: void
Date: Sun Feb 15 05:27:56 2009
New Revision: 64585
URL: http://llvm.org/viewvc/llvm-project?rev=64585&view=rev
Log:
Pull r64582 into Dib.
Added:
llvm/branches/Apple/Dib/test/CodeGen/X86/pr3522.ll
- copied unchanged from r64582, llvm/trunk/test/CodeGen/X86/pr3522.ll
Modified:
llvm/branches/Apple/Dib/lib/CodeGen/MachineSink.cpp
Modified: llvm/branches/Apple/Dib/lib/CodeGen/MachineSink.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/lib/CodeGen/MachineSink.cpp?rev=64585&r1=64584&r2=64585&view=diff
==============================================================================
--- llvm/branches/Apple/Dib/lib/CodeGen/MachineSink.cpp (original)
+++ llvm/branches/Apple/Dib/lib/CodeGen/MachineSink.cpp Sun Feb 15 05:27:56 2009
@@ -212,6 +212,11 @@
// If there are no outputs, it must have side-effects.
if (SuccToSinkTo == 0)
return false;
+
+ // It's not safe to sink instructions to EH landing pad. Control flow into
+ // landing pad is implicitly defined.
+ if (SuccToSinkTo->isLandingPad())
+ return false;
DEBUG(cerr << "Sink instr " << *MI);
DEBUG(cerr << "to block " << *SuccToSinkTo);
More information about the llvm-commits
mailing list