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:
05b5743
)
Fix a powerpc crash on CodeGen/Generic/llvm-ct-intrinsics.ll
author
Chris Lattner
<sabre@nondot.org>
Tue, 11 Oct 2005 17:56:34 +0000
(17:56 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 11 Oct 2005 17:56:34 +0000
(17:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23694
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 0098a56a9a241f67b03555c4f7206b7748aff382..db9af8ac518aa9abc7dfe62c0e2af8526ad3be24 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@
-724,7
+724,7
@@
SDOperand DAGCombiner::visitAND(SDNode *N) {
return DAG.getNode(ISD::AND, VT, N0.getOperand(0), N1);
}
// fold (and (or x, 0xFFFF), 0xFF) -> 0xFF
- if (N0.getOpcode() == ISD::OR)
+ if (N0.getOpcode() == ISD::OR
&& N1C
)
if (ConstantSDNode *ORI = dyn_cast<ConstantSDNode>(N0.getOperand(1)))
if ((ORI->getValue() & N1C->getValue()) == N1C->getValue())
return N1;