diff options
author | Dan Gohman <gohman@apple.com> | 2008-05-14 18:17:09 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-05-14 18:17:09 +0000 |
commit | 3ab94df276ea939f05fc2395876a06a2e73f5ad4 (patch) | |
tree | 688ec7266ea5538ecef3461b522bd138264bd309 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 38e59eb0c728e0228cb8a7673d46f06aed3ed25c (diff) | |
download | bcm5719-llvm-3ab94df276ea939f05fc2395876a06a2e73f5ad4.tar.gz bcm5719-llvm-3ab94df276ea939f05fc2395876a06a2e73f5ad4.zip |
When bit-twiddling CondCode values for integer comparisons produces
SETOEQ, is it does with (SETEQ & SETULE), map it to SETEQ.
llvm-svn: 51112
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 058e60f5fc8..dc9d99131bf 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -293,6 +293,7 @@ ISD::CondCode ISD::getSetCCAndOperation(ISD::CondCode Op1, ISD::CondCode Op2, switch (Result) { default: break; case ISD::SETUO : Result = ISD::SETFALSE; break; // SETUGT & SETULT + case ISD::SETOEQ: // SETEQ & SETU[LG]E case ISD::SETUEQ: Result = ISD::SETEQ ; break; // SETUGE & SETULE case ISD::SETOLT: Result = ISD::SETULT ; break; // SETULT & SETNE case ISD::SETOGT: Result = ISD::SETUGT ; break; // SETUGT & SETNE |