diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-02-05 22:50:29 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-02-05 22:50:29 +0000 |
commit | 07f307d74154af2be9ae7d1c5a90912aef42f0c6 (patch) | |
tree | bde597ab334f6b85410379f63fde4d78d89573f0 /lib/CodeGen | |
parent | 07322bbd360b393ab7b6a1306ea009031f1150a3 (diff) | |
download | external_llvm-07f307d74154af2be9ae7d1c5a90912aef42f0c6.zip external_llvm-07f307d74154af2be9ae7d1c5a90912aef42f0c6.tar.gz external_llvm-07f307d74154af2be9ae7d1c5a90912aef42f0c6.tar.bz2 |
Fix PR1975: dag isel emitter produces patterns that isel wrong flag result.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46776 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 11b289b..4b68fb7 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -3183,10 +3183,6 @@ SDNode *SelectionDAG::getTargetNode(unsigned Opcode, void SelectionDAG::ReplaceAllUsesWith(SDOperand FromN, SDOperand To, DAGUpdateListener *UpdateListener) { SDNode *From = FromN.Val; - // FIXME: This works around a dag isel emitter bug. - if (From->getNumValues() == 1 && FromN.ResNo != 0) - return; // FIXME: THIS IS BOGUS - assert(From->getNumValues() == 1 && FromN.ResNo == 0 && "Cannot replace with this method!"); assert(From != To.Val && "Cannot replace uses of with self"); |