[llvm] 63e3035 - [X86] LowerGC_TRANSITION - remove redundant SDLoc().
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 7 02:58:06 PDT 2022
Author: Simon Pilgrim
Date: 2022-06-07T10:57:58+01:00
New Revision: 63e3035dbe8bbc23b2cbfd2ab6bdc5b4309d0253
URL: https://github.com/llvm/llvm-project/commit/63e3035dbe8bbc23b2cbfd2ab6bdc5b4309d0253
DIFF: https://github.com/llvm/llvm-project/commit/63e3035dbe8bbc23b2cbfd2ab6bdc5b4309d0253.diff
LOG: [X86] LowerGC_TRANSITION - remove redundant SDLoc().
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 9df146057fd17..82792564e7bde 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -31800,16 +31800,12 @@ SDValue X86TargetLowering::LowerGC_TRANSITION(SDValue Op,
// require special handling for these nodes), lower them as literal NOOPs for
// the time being.
SmallVector<SDValue, 2> Ops;
-
Ops.push_back(Op.getOperand(0));
if (Op->getGluedNode())
Ops.push_back(Op->getOperand(Op->getNumOperands() - 1));
- SDLoc OpDL(Op);
SDVTList VTs = DAG.getVTList(MVT::Other, MVT::Glue);
- SDValue NOOP(DAG.getMachineNode(X86::NOOP, SDLoc(Op), VTs, Ops), 0);
-
- return NOOP;
+ return SDValue(DAG.getMachineNode(X86::NOOP, SDLoc(Op), VTs, Ops), 0);
}
// Custom split CVTPS2PH with wide types.
More information about the llvm-commits
mailing list