forked from OSchip/llvm-project
[InstCombine] Remove dead code (NFC)
This was a leftover condition without code.
This commit is contained in:
parent
607f8ced39
commit
46c2b41d02
|
@ -1115,13 +1115,6 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
|
|||
if (Constant *NumBytes = dyn_cast<Constant>(MI->getLength())) {
|
||||
if (NumBytes->isNullValue())
|
||||
return eraseInstFromFunction(CI);
|
||||
|
||||
if (ConstantInt *CI = dyn_cast<ConstantInt>(NumBytes))
|
||||
if (CI->getZExtValue() == 1) {
|
||||
// Replace the instruction with just byte operations. We would
|
||||
// transform other cases to loads/stores, but we don't know if
|
||||
// alignment is sufficient.
|
||||
}
|
||||
}
|
||||
|
||||
// No other transformations apply to volatile transfers.
|
||||
|
|
Loading…
Reference in New Issue