prevent va_arg from being hoisted from a loop

llvm-svn: 22265
This commit is contained in:
Andrew Lenharth 2005-06-20 13:36:33 +00:00
parent ce40ab3077
commit 08ff634c2b

View 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