IndirectBr is not safe to speculatively execute (!)
authorDan Gohman <gohman@apple.com>
Fri, 2 Jul 2010 00:35:34 +0000 (00:35 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 2 Jul 2010 00:35:34 +0000 (00:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107454 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Instruction.cpp

index a37fe070bda044096ff478f227bb0333bedde2b7..e8d2814c44fe540f75c2f78461acb8d988aec2e2 100644 (file)
@@ -421,6 +421,7 @@ bool Instruction::isSafeToSpeculativelyExecute() const {
   case Store:
   case Ret:
   case Br:
+  case IndirectBr:
   case Switch:
   case Unwind:
   case Unreachable: