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:
9cd87db
)
Legalize unconditional branches too
author
Chris Lattner
<sabre@nondot.org>
Fri, 7 Jan 2005 22:12:08 +0000
(22:12 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 7 Jan 2005 22:12:08 +0000
(22:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19356
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 42f217a6741d9e0390beb898f2997e0f7686f840..52389ec8ad2b7f4b929f5209dae04506710b861d 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@
-301,6
+301,12
@@
SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
}
break;
+ case ISD::BR:
+ Tmp1 = LegalizeOp(Node->getOperand(0)); // Legalize the chain.
+ if (Tmp1 != Node->getOperand(0))
+ Result = DAG.getNode(ISD::BR, MVT::Other, Tmp1, Node->getOperand(1));
+ break;
+
case ISD::BRCOND:
Tmp1 = LegalizeOp(Node->getOperand(0)); // Legalize the chain.
// FIXME: booleans might not be legal!