mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
[InstSimplify] Don't try to constant fold AllocaInsts since it won't do anything.
Should give a small compile time improvement. llvm-svn: 300125
This commit is contained in:
parent
c764621a52
commit
8d04711bd9
@ -4627,6 +4627,10 @@ Value *llvm::SimplifyInstruction(Instruction *I, const DataLayout &DL,
|
||||
Result = SimplifyCastInst(I->getOpcode(), I->getOperand(0), I->getType(),
|
||||
DL, TLI, DT, AC, I);
|
||||
break;
|
||||
case Instruction::Alloca:
|
||||
// No simplifications for Alloca and it can't be constant folded.
|
||||
Result = nullptr;
|
||||
break;
|
||||
}
|
||||
|
||||
// In general, it is possible for computeKnownBits to determine all bits in a
|
||||
|
Loading…
x
Reference in New Issue
Block a user