prevent GCSE from forwarding stores to loads around vaarg. This is uggly, and I am trying to fix the AliasInfo, as it should catch the problem instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22266 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Lenharth 2005-06-20 15:02:05 +00:00
parent 38b5807bd9
commit e3e1739b7d

View File

@ -328,6 +328,10 @@ void LoadVN::getEqualNumberNodes(Value *V,
LoadInvalidatedInBBBefore = true;
break;
}
if (dyn_cast<VAArgInst>(I)) {
LoadInvalidatedInBBBefore = true;
break;
}
}
// Figure out if the load is invalidated between the load and the exit of the