[llvm] r269516 - SDAG: Clean up a dead node I missed earlier in X86
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Fri May 13 16:26:29 PDT 2016
Author: bogner
Date: Fri May 13 18:26:28 2016
New Revision: 269516
URL: http://llvm.org/viewvc/llvm-project?rev=269516&view=rev
Log:
SDAG: Clean up a dead node I missed earlier in X86
H.J. Lu pointed out that I missed this in r269236. Thanks!
Modified:
llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp?rev=269516&r1=269515&r2=269516&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp Fri May 13 18:26:28 2016
@@ -1957,7 +1957,7 @@ void X86DAGToDAGISel::Select(SDNode *Nod
SDValue ZextTarget = CurDAG->getZExtOrTrunc(Target, dl, EVT(MVT::i64));
SDValue Brind = CurDAG->getNode(ISD::BRIND, dl, MVT::Other,
Node->getOperand(0), ZextTarget);
- ReplaceUses(SDValue(Node, 0), Brind);
+ ReplaceNode(Node, Brind.getNode());
SelectCode(ZextTarget.getNode());
SelectCode(Brind.getNode());
return;
More information about the llvm-commits
mailing list