mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
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
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user