[llvm] 6c0181c - [InstCombine] fix typos in comments; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 31 09:09:25 PDT 2021


Author: Sanjay Patel
Date: 2021-08-31T12:08:36-04:00
New Revision: 6c0181c00f4ea0bcb7e4d05055412083b8270cc8

URL: https://github.com/llvm/llvm-project/commit/6c0181c00f4ea0bcb7e4d05055412083b8270cc8
DIFF: https://github.com/llvm/llvm-project/commit/6c0181c00f4ea0bcb7e4d05055412083b8270cc8.diff

LOG: [InstCombine] fix typos in comments; NFC

Added: 
    

Modified: 
    llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp b/llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
index 01f8e60db7e7..0c2321a93d89 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
@@ -240,7 +240,7 @@ dropRedundantMaskingOfLeftShiftInput(BinaryOperator *OuterShift,
     // that shall remain in the root value (OuterShift).
 
     // An extend of an undef value becomes zero because the high bits are never
-    // completely unknown. Replace the the `undef` shift amounts with final
+    // completely unknown. Replace the `undef` shift amounts with final
     // shift bitwidth to ensure that the value remains undef when creating the
     // subsequent shift op.
     SumOfShAmts = Constant::replaceUndefsWith(
@@ -272,7 +272,7 @@ dropRedundantMaskingOfLeftShiftInput(BinaryOperator *OuterShift,
     // shall be unset in the root value (OuterShift).
 
     // An extend of an undef value becomes zero because the high bits are never
-    // completely unknown. Replace the the `undef` shift amounts with negated
+    // completely unknown. Replace the `undef` shift amounts with negated
     // bitwidth of innermost shift to ensure that the value remains undef when
     // creating the subsequent shift op.
     unsigned WidestTyBitWidth = WidestTy->getScalarSizeInBits();


        


More information about the llvm-commits mailing list