[llvm] 8fee91c - [RISCV][NFC]Remove outdated comment from targetShrinkDemandedConstant

via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 18 19:23:15 PDT 2022


Author: LiaoChunyu
Date: 2022-09-19T10:23:06+08:00
New Revision: 8fee91c43517fd9014e1af15b7adab33b61ad6f6

URL: https://github.com/llvm/llvm-project/commit/8fee91c43517fd9014e1af15b7adab33b61ad6f6
DIFF: https://github.com/llvm/llvm-project/commit/8fee91c43517fd9014e1af15b7adab33b61ad6f6.diff

LOG: [RISCV][NFC]Remove outdated comment from targetShrinkDemandedConstant

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D134154

Added: 
    

Modified: 
    llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index 171c1b12434e..ff9993bcb9e2 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -10004,7 +10004,6 @@ bool RISCVTargetLowering::targetShrinkDemandedConstant(
   if (VT.isVector())
     return false;
 
-  // Only handle AND for now.
   unsigned Opcode = Op.getOpcode();
   if (Opcode != ISD::AND && Opcode != ISD::OR && Opcode != ISD::XOR)
     return false;


        


More information about the llvm-commits mailing list