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:
158cf5e
)
Fix CodeGen/PowerPC/2006-10-17-brcc-miscompile.ll
author
Chris Lattner
<sabre@nondot.org>
Tue, 17 Oct 2006 21:24:15 +0000
(21:24 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 17 Oct 2006 21:24:15 +0000
(21:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31019
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 997820dd64b4b531d237b0319dbd246d5adcf8e3..aa6f4ae98c5b5941726ddd46f3cc261cf2d635ff 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@
-3689,7
+3689,7
@@
SDOperand DAGCombiner::SimplifySetCC(MVT::ValueType VT, SDOperand N0,
cast<ConstantSDNode>(N0.getOperand(1))->getValue() == 1) {
// If this is (X^1) == 0/1, swap the RHS and eliminate the xor. We
// can only do this if the top bits are known zero.
- if (TLI.MaskedValueIsZero(N
1
,
+ if (TLI.MaskedValueIsZero(N
0
,
MVT::getIntVTBitMask(N0.getValueType())-1)){
// Okay, get the un-inverted input value.
SDOperand Val;