[InstCombine] Remove dead code (NFC)

This was a leftover condition without code.
This commit is contained in:
Nikita Popov 2022-04-21 15:53:14 +02:00
parent 607f8ced39
commit 46c2b41d02
1 changed files with 0 additions and 7 deletions

View File

@ -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.