projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ad913b
)
same patch as the previous one, but the symmetric case
author
Chris Lattner
<sabre@nondot.org>
Sat, 19 May 2007 00:46:51 +0000
(
00:46
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 19 May 2007 00:46:51 +0000
(
00:46
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37249
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/TargetLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/TargetLowering.cpp
b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index e5883f60c53fe0ce8d0381118cc18072e3dd8f39..0ce8b3faeb5ab5d43690688235f9df2cf2e98b50 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/
lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@
-1808,7
+1808,7
@@
TargetLowering::SimplifySetCC(MVT::ValueType VT, SDOperand N0, SDOperand N1,
if (DAG.isCommutativeBinOp(N1.getOpcode())) {
return DAG.getSetCC(VT, N1.getOperand(0),
DAG.getConstant(0, N1.getValueType()), Cond);
- } else {
+ } else
if (N1.Val->hasOneUse())
{
assert(N1.getOpcode() == ISD::SUB && "Unexpected operation!");
// X == (Z-X) --> X<<1 == Z
SDOperand SH = DAG.getNode(ISD::SHL, N1.getValueType(), N0,