[llvm] r250726 - Restore the original behavior of SelectionDAG::getTargetIndex().
Owen Anderson via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 19 12:27:40 PDT 2015
Author: resistor
Date: Mon Oct 19 14:27:40 2015
New Revision: 250726
URL: http://llvm.org/viewvc/llvm-project?rev=250726&view=rev
Log:
Restore the original behavior of SelectionDAG::getTargetIndex().
It looks like an extra negation snuck in as apart of restoring it.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=250726&r1=250725&r2=250726&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Mon Oct 19 14:27:40 2015
@@ -1410,7 +1410,7 @@ SDValue SelectionDAG::getTargetIndex(int
return SDValue(E, 0);
SDNode *N =
- new (NodeAllocator) TargetIndexSDNode(Index, VT, Offset, -TargetFlags);
+ new (NodeAllocator) TargetIndexSDNode(Index, VT, Offset, TargetFlags);
CSEMap.InsertNode(N, IP);
InsertNode(N);
return SDValue(N, 0);
More information about the llvm-commits
mailing list