prevent va_arg from being hoisted from a loop
authorAndrew Lenharth <andrewl@lenharth.org>
Mon, 20 Jun 2005 13:36:33 +0000 (13:36 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Mon, 20 Jun 2005 13:36:33 +0000 (13:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22265 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LICM.cpp

index acd17e7fe1b2c59266fe5829baf94c7387417c25..e9a853034a80bc53f12217bd8ebe2501967eae88 100644 (file)
@@ -386,7 +386,7 @@ bool LICM::canSinkOrHoistInst(Instruction &I) {
 
   return isa<BinaryOperator>(I) || isa<ShiftInst>(I) || isa<CastInst>(I) ||
          isa<SelectInst>(I) ||
-         isa<GetElementPtrInst>(I) || isa<VAArgInst>(I);
+         isa<GetElementPtrInst>(I);
 }
 
 /// isNotUsedInLoop - Return true if the only users of this instruction are