[llvm] r331609 - [NFC][DAGCombine] unfoldMaskedMerge(): rename two variables

Roman Lebedev via llvm-commits llvm-commits at lists.llvm.org
Sun May 6 13:02:22 PDT 2018


Author: lebedevri
Date: Sun May  6 13:02:22 2018
New Revision: 331609

URL: http://llvm.org/viewvc/llvm-project?rev=331609&view=rev
Log:
[NFC][DAGCombine] unfoldMaskedMerge(): rename two variables

The current names can be confused with the A and B sides
of the canonical masked merge pattern.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=331609&r1=331608&r2=331609&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Sun May  6 13:02:22 2018
@@ -5412,10 +5412,10 @@ SDValue DAGCombiner::unfoldMaskedMerge(S
     return true;
   };
 
-  SDValue A = N->getOperand(0);
-  SDValue B = N->getOperand(1);
-  if (!matchAndXor(A, 0, B) && !matchAndXor(A, 1, B) && !matchAndXor(B, 0, A) &&
-      !matchAndXor(B, 1, A))
+  SDValue N0 = N->getOperand(0);
+  SDValue N1 = N->getOperand(1);
+  if (!matchAndXor(N0, 0, N1) && !matchAndXor(N0, 1, N1) &&
+      !matchAndXor(N1, 0, N0) && !matchAndXor(N1, 1, N0))
     return SDValue();
 
   // Don't do anything if the mask is constant. This should not be reachable.




More information about the llvm-commits mailing list