[llvm-commits] [llvm] r42824 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Duncan Sands
baldrick at free.fr
Wed Oct 10 02:54:53 PDT 2007
Author: baldrick
Date: Wed Oct 10 04:54:50 2007
New Revision: 42824
URL: http://llvm.org/viewvc/llvm-project?rev=42824&view=rev
Log:
Correct swapped arguments to getConstant.
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=42824&r1=42823&r2=42824&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Wed Oct 10 04:54:50 2007
@@ -2068,7 +2068,7 @@
N0.Val->hasOneUse() && isSetCCEquivalent(N0.getOperand(0), LHS, RHS, CC)){
SDOperand V = N0.getOperand(0);
V = DAG.getNode(ISD::XOR, V.getValueType(), V,
- DAG.getConstant(V.getValueType(), 1));
+ DAG.getConstant(1, V.getValueType()));
AddToWorkList(V.Val);
return DAG.getNode(ISD::ZERO_EXTEND, VT, V);
}
More information about the llvm-commits
mailing list