[llvm-commits] [llvm] r138962 - /llvm/trunk/lib/VMCore/Instruction.cpp

Eli Friedman eli.friedman at gmail.com
Thu Sep 1 14:03:03 PDT 2011


Author: efriedma
Date: Thu Sep  1 16:03:03 2011
New Revision: 138962

URL: http://llvm.org/viewvc/llvm-project?rev=138962&view=rev
Log:
Make isSafeToSpeculativelyExecute() return the right answer for some new instructions.  Found by inspection; not sure what practical impact, if any, this has.


Modified:
    llvm/trunk/lib/VMCore/Instruction.cpp

Modified: llvm/trunk/lib/VMCore/Instruction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Instruction.cpp?rev=138962&r1=138961&r2=138962&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Instruction.cpp (original)
+++ llvm/trunk/lib/VMCore/Instruction.cpp Thu Sep  1 16:03:03 2011
@@ -436,6 +436,10 @@
   case Unwind:
   case Unreachable:
   case Fence:
+  case LandingPad:
+  case AtomicRMW:
+  case AtomicCmpXchg:
+  case Resume:
     return false; // Misc instructions which have effects
   }
 }





More information about the llvm-commits mailing list