diff options
author | Dan Gohman <gohman@apple.com> | 2007-07-26 16:06:08 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-07-26 16:06:08 +0000 |
commit | 37f3ee17d2192e52f436f640788b28c0b68db102 (patch) | |
tree | 24593350863a6f0aa740fb353e95fb4fbb4767ac /lib/Transforms/Utils/Local.cpp | |
parent | c2dfd066c0343e48050a405637b2d04705c47d79 (diff) |
Move the GET_SIDE_EFFECT_INFO logic from isInstructionTriviallyDead
to Instruction::mayWriteToMemory, fixing a FIXME, and helping
various places that call mayWriteToMemory directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40533 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/Local.cpp')
-rw-r--r-- | lib/Transforms/Utils/Local.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/Transforms/Utils/Local.cpp b/lib/Transforms/Utils/Local.cpp index 5e2d2375cc..187ebdc797 100644 --- a/lib/Transforms/Utils/Local.cpp +++ b/lib/Transforms/Utils/Local.cpp @@ -175,13 +175,6 @@ bool llvm::isInstructionTriviallyDead(Instruction *I) { if (!I->mayWriteToMemory()) return true; - if (CallInst *CI = dyn_cast<CallInst>(I)) - if (Function *F = CI->getCalledFunction()) { - unsigned IntrinsicID = F->getIntrinsicID(); -#define GET_SIDE_EFFECT_INFO -#include "llvm/Intrinsics.gen" -#undef GET_SIDE_EFFECT_INFO - } return false; } |