diff options
author | Chris Lattner <sabre@nondot.org> | 2008-05-22 03:23:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-05-22 03:23:06 +0000 |
commit | 05a24e5efe176fc22ba166e08ff9ddeb9e4e73a0 (patch) | |
tree | 45119974b631833be13e5f3f8f9d0d2ed9f82106 /lib/Analysis/AliasSetTracker.cpp | |
parent | 19d9d4364e514f316f8757b577bb8bb33c22dbfc (diff) |
Free and vaarg are not really volatile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51407 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/AliasSetTracker.cpp')
-rw-r--r-- | lib/Analysis/AliasSetTracker.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/Analysis/AliasSetTracker.cpp b/lib/Analysis/AliasSetTracker.cpp index 228bb80ae3..398bf5aca5 100644 --- a/lib/Analysis/AliasSetTracker.cpp +++ b/lib/Analysis/AliasSetTracker.cpp @@ -284,20 +284,13 @@ bool AliasSetTracker::add(StoreInst *SI) { bool AliasSetTracker::add(FreeInst *FI) { bool NewPtr; - AliasSet &AS = addPointer(FI->getOperand(0), ~0, - AliasSet::Mods, NewPtr); - - // Free operations are volatile ops (cannot be moved). - AS.setVolatile(); + addPointer(FI->getOperand(0), ~0, AliasSet::Mods, NewPtr); return NewPtr; } bool AliasSetTracker::add(VAArgInst *VAAI) { bool NewPtr; - AliasSet &AS = addPointer(VAAI->getOperand(0), ~0, AliasSet::ModRef, NewPtr); - - // Treat vaarg instructions as volatile (not to be moved). - AS.setVolatile(); + addPointer(VAAI->getOperand(0), ~0, AliasSet::ModRef, NewPtr); return NewPtr; } |