[X86] foldMaskedMergeImpl - pass SDLoc by const reference not value.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 7 Jun 2022 11:36:30 +0000 (12:36 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 7 Jun 2022 11:36:30 +0000 (12:36 +0100)
llvm/lib/Target/X86/X86ISelLowering.cpp

index 8279256..8a8d805 100644 (file)
@@ -47787,8 +47787,8 @@ static SDValue combineOrCmpEqZeroToCtlzSrl(SDNode *N, SelectionDAG &DAG,
 }
 
 static SDValue foldMaskedMergeImpl(SDValue And0_L, SDValue And0_R,
-                                   SDValue And1_L, SDValue And1_R, SDLoc DL,
-                                   SelectionDAG &DAG) {
+                                   SDValue And1_L, SDValue And1_R,
+                                   const SDLoc &DL, SelectionDAG &DAG) {
   if (!isBitwiseNot(And0_L, true) || !And0_L->hasOneUse())
     return SDValue();
   SDValue NotOp = And0_L->getOperand(0);