Skip to content
This repository was archived by the owner on Sep 2, 2018. It is now read-only.

Commit 349fe92

Browse files
author
mcrosier
committed
Revert "[AliasSetTracker] Make AST smarter about intrinsics that don't actually affect memory."
This reverts commit r285191. LICM appears to rely on the Alias Set Tracker hitting lifetime markers to prevent code from being moved outside of the original scope. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285227 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent e6139f6 commit 349fe92

File tree

2 files changed

+0
-69
lines changed

2 files changed

+0
-69
lines changed

lib/Analysis/AliasSetTracker.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -413,21 +413,6 @@ void AliasSetTracker::add(MemTransferInst *MTI) {
413413
void AliasSetTracker::addUnknown(Instruction *Inst) {
414414
if (isa<DbgInfoIntrinsic>(Inst))
415415
return; // Ignore DbgInfo Intrinsics.
416-
417-
if (auto *II = dyn_cast<IntrinsicInst>(Inst)) {
418-
// These intrinsics will show up as affecting memory, but they are just
419-
// markers.
420-
switch (II->getIntrinsicID()) {
421-
default:
422-
break;
423-
case Intrinsic::lifetime_start:
424-
case Intrinsic::lifetime_end:
425-
case Intrinsic::invariant_start:
426-
case Intrinsic::invariant_end:
427-
case Intrinsic::assume:
428-
return;
429-
}
430-
}
431416
if (!Inst->mayReadOrWriteMemory())
432417
return; // doesn't alias anything
433418

test/Analysis/AliasSet/intrinsics.ll

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)