mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-04 18:06:49 +00:00
prevent va_arg from being hoisted from a loop
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22265 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c64b64a204
commit
38b5807bd9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user