[InstCombine] Remove dead code (NFC)
authorNikita Popov <npopov@redhat.com>
Thu, 21 Apr 2022 13:53:14 +0000 (15:53 +0200)
committerNikita Popov <npopov@redhat.com>
Thu, 21 Apr 2022 13:53:53 +0000 (15:53 +0200)
This was a leftover condition without code.

llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp

index d9a8b37..1de861e 100644 (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.