[llvm] 852cfc2 - [NFC] Fix incorrect comment for simplifyRightShift

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 21 12:05:53 PDT 2023


Author: Arthur Eubanks
Date: 2023-03-21T12:05:37-07:00
New Revision: 852cfc2ed31bd434222d55930312f7e94884a322

URL: https://github.com/llvm/llvm-project/commit/852cfc2ed31bd434222d55930312f7e94884a322
DIFF: https://github.com/llvm/llvm-project/commit/852cfc2ed31bd434222d55930312f7e94884a322.diff

LOG: [NFC] Fix incorrect comment for simplifyRightShift

Added: 
    

Modified: 
    llvm/lib/Analysis/InstructionSimplify.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Analysis/InstructionSimplify.cpp b/llvm/lib/Analysis/InstructionSimplify.cpp
index ebc5a77efd1f..ecb0cdbd13c6 100644
--- a/llvm/lib/Analysis/InstructionSimplify.cpp
+++ b/llvm/lib/Analysis/InstructionSimplify.cpp
@@ -1411,8 +1411,8 @@ static Value *simplifyShift(Instruction::BinaryOps Opcode, Value *Op0,
   return nullptr;
 }
 
-/// Given operands for an Shl, LShr or AShr, see if we can
-/// fold the result.  If not, this returns null.
+/// Given operands for an LShr or AShr, see if we can fold the result.  If not,
+/// this returns null.
 static Value *simplifyRightShift(Instruction::BinaryOps Opcode, Value *Op0,
                                  Value *Op1, bool IsExact,
                                  const SimplifyQuery &Q, unsigned MaxRecurse) {


        


More information about the llvm-commits mailing list