diff options
author | Chris Lattner <sabre@nondot.org> | 2006-01-18 19:13:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-01-18 19:13:41 +0000 |
commit | 4090aee72e0f29976c9b1e7a0e0c7b4456f645b5 (patch) | |
tree | 6cc02a84201fa9600173fe1c038116839824ec13 /lib | |
parent | a076787d7b6f7bebb43a8fa6f55fd66c451eaf68 (diff) | |
download | external_llvm-4090aee72e0f29976c9b1e7a0e0c7b4456f645b5.zip external_llvm-4090aee72e0f29976c9b1e7a0e0c7b4456f645b5.tar.gz external_llvm-4090aee72e0f29976c9b1e7a0e0c7b4456f645b5.tar.bz2 |
Fix a backwards conditional that caused an inf loop in some cases. This
fixes: test/Regression/CodeGen/Generic/2005-01-18-SetUO-InfLoop.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25419 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 61bfd46..9acf75d 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -2638,7 +2638,7 @@ SDOperand DAGCombiner::SimplifySetCC(MVT::ValueType VT, SDOperand N0, return DAG.getConstant(UOF, VT); // Otherwise, we can't fold it. However, we can simplify it to SETUO/SETO // if it is not already. - ISD::CondCode NewCond = UOF == 0 ? ISD::SETUO : ISD::SETO; + ISD::CondCode NewCond = UOF == 0 ? ISD::SETO : ISD::SETUO; if (NewCond != Cond) return DAG.getSetCC(VT, N0, N1, NewCond); } |