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 | 6e853bc73f3bbf3248cb8edee6ee636d60b213a0 (patch) | |
| tree | 325f7c96b3ddfe06fa744c1ccaefd5067ba8b4a6 /llvm/lib/Transforms/Utils/Local.cpp | |
| parent | eb47d9213cc86a739231c8ece6afab35c859f0d4 (diff) | |
| download | bcm5719-llvm-6e853bc73f3bbf3248cb8edee6ee636d60b213a0.tar.gz bcm5719-llvm-6e853bc73f3bbf3248cb8edee6ee636d60b213a0.zip | |
Move the GET_SIDE_EFFECT_INFO logic from isInstructionTriviallyDead
to Instruction::mayWriteToMemory, fixing a FIXME, and helping
various places that call mayWriteToMemory directly.
llvm-svn: 40533
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index 5e2d2375cca..187ebdc7979 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/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; } |

