[llvm] eeb8de9 - [X86] Replace getOperand calls with an existing variable. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 20 19:28:12 PST 2022


Author: Craig Topper
Date: 2022-12-20T19:27:11-08:00
New Revision: eeb8de936303e0341417b4580b456ba6ea2a82f7

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

LOG: [X86] Replace getOperand calls with an existing variable. NFC

Added: 
    

Modified: 
    llvm/lib/Target/X86/X86ISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index f4e4e81c83a1..096b457e9122 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -25549,8 +25549,8 @@ SDValue X86TargetLowering::LowerSELECT(SDValue Op, SelectionDAG &DAG) const {
                                 Sub.getValue(1));
       return DAG.getNode(ISD::OR, DL, VT, SBB, Y);
     } else if (!Subtarget.canUseCMOV() && CondCode == X86::COND_E &&
-               Cmp.getOperand(0).getOpcode() == ISD::AND &&
-               isOneConstant(Cmp.getOperand(0).getOperand(1))) {
+               CmpOp0.getOpcode() == ISD::AND &&
+               isOneConstant(CmpOp0.getOperand(1))) {
       SDValue Src1, Src2;
       // true if Op2 is XOR or OR operator and one of its operands
       // is equal to Op1


        


More information about the llvm-commits mailing list