summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-30 02:03:47 +0000
committerChris Lattner <sabre@nondot.org>2010-11-30 02:03:47 +0000
commitb438ef236c4b1bc2614dd755fab24c95f21ecd35 (patch)
treed660938d689ece5ebf4d679943e897fba53d6db2 /llvm/lib/Transforms/Utils/Local.cpp
parentd540a5d8426a6b809f3bd9051cd463338a29ddb9 (diff)
downloadbcm5719-llvm-b438ef236c4b1bc2614dd755fab24c95f21ecd35.tar.gz
bcm5719-llvm-b438ef236c4b1bc2614dd755fab24c95f21ecd35.zip
remove the pointless check of MemoryUseIntrinsic from
is trivially dead, since these have side effects. This makes the (misnamed) MemoryUseIntrinsic class dead, so remove it. llvm-svn: 120382
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Local.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index 031bb4ba1b1..383efcec10c 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -209,9 +209,6 @@ bool llvm::isInstructionTriviallyDead(Instruction *I) {
// We don't want debug info removed by anything this general.
if (isa<DbgInfoIntrinsic>(I)) return false;
- // Likewise for memory use markers.
- if (isa<MemoryUseIntrinsic>(I)) return false;
-
if (!I->mayHaveSideEffects()) return true;
// Special case intrinsics that "may have side effects" but can be deleted
OpenPOWER on IntegriCloud