diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-30 02:03:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-30 02:03:47 +0000 |
commit | d6f02d1fffb1f05b98905d0e4a61d8364320617c (patch) | |
tree | 9fa8ed3b87da2c2a44aa7c5fce525d37ad17abb2 /lib/Transforms/Utils/Local.cpp | |
parent | 12bf43bc4f86602a5677d5e1662cb4e40562351b (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120382 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/Local.cpp')
-rw-r--r-- | lib/Transforms/Utils/Local.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Transforms/Utils/Local.cpp b/lib/Transforms/Utils/Local.cpp index 031bb4ba1b..383efcec10 100644 --- a/lib/Transforms/Utils/Local.cpp +++ b/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 |