mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
rearrange some code, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59381 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7d3b4e92ab
commit
1ca0c9922b
@ -4366,27 +4366,6 @@ Instruction *InstCombiner::visitOr(BinaryOperator &I) {
|
||||
if (match(B, m_Not(SELECT_MATCH(C1, -1, 0))) && C1 == C0)
|
||||
return SelectInst::Create(C1, C, D);
|
||||
}
|
||||
if (match(B, SELECT_MATCH(C0, -1, 0))) {
|
||||
Value *C1 = 0;
|
||||
if (match(C, m_Not(SELECT_MATCH(C1, -1, 0))) && C1 == C0)
|
||||
return SelectInst::Create(C1, A, D);
|
||||
if (match(A, m_Not(SELECT_MATCH(C1, -1, 0))) && C1 == C0)
|
||||
return SelectInst::Create(C1, C, D);
|
||||
}
|
||||
if (match(C, SELECT_MATCH(C0, -1, 0))) {
|
||||
Value *C1 = 0;
|
||||
if (match(D, m_Not(SELECT_MATCH(C1, -1, 0))) && C1 == C0)
|
||||
return SelectInst::Create(C1, A, B);
|
||||
if (match(B, m_Not(SELECT_MATCH(C1, -1, 0))) && C1 == C0)
|
||||
return SelectInst::Create(C1, A, D);
|
||||
}
|
||||
if (match(D, SELECT_MATCH(C0, -1, 0))) {
|
||||
Value *C1 = 0;
|
||||
if (match(C, m_Not(SELECT_MATCH(C1, -1, 0))) && C1 == C0)
|
||||
return SelectInst::Create(C1, A, B);
|
||||
if (match(A, m_Not(SELECT_MATCH(C1, -1, 0))) && C1 == C0)
|
||||
return SelectInst::Create(C1, C, B);
|
||||
}
|
||||
if (match(A, SELECT_MATCH(C0, 0, -1))) {
|
||||
Value *C1 = 0;
|
||||
if (match(D, m_Not(SELECT_MATCH(C1, 0, -1))) && C1 == C0)
|
||||
@ -4394,6 +4373,13 @@ Instruction *InstCombiner::visitOr(BinaryOperator &I) {
|
||||
if (match(B, m_Not(SELECT_MATCH(C1, 0, -1))) && C1 == C0)
|
||||
return SelectInst::Create(C1, D, C);
|
||||
}
|
||||
if (match(B, SELECT_MATCH(C0, -1, 0))) {
|
||||
Value *C1 = 0;
|
||||
if (match(C, m_Not(SELECT_MATCH(C1, -1, 0))) && C1 == C0)
|
||||
return SelectInst::Create(C1, A, D);
|
||||
if (match(A, m_Not(SELECT_MATCH(C1, -1, 0))) && C1 == C0)
|
||||
return SelectInst::Create(C1, C, D);
|
||||
}
|
||||
if (match(B, SELECT_MATCH(C0, 0, -1))) {
|
||||
Value *C1 = 0;
|
||||
if (match(C, m_Not(SELECT_MATCH(C1, 0, -1))) && C1 == C0)
|
||||
@ -4401,6 +4387,13 @@ Instruction *InstCombiner::visitOr(BinaryOperator &I) {
|
||||
if (match(A, m_Not(SELECT_MATCH(C1, 0, -1))) && C1 == C0)
|
||||
return SelectInst::Create(C1, D, C);
|
||||
}
|
||||
if (match(C, SELECT_MATCH(C0, -1, 0))) {
|
||||
Value *C1 = 0;
|
||||
if (match(D, m_Not(SELECT_MATCH(C1, -1, 0))) && C1 == C0)
|
||||
return SelectInst::Create(C1, A, B);
|
||||
if (match(B, m_Not(SELECT_MATCH(C1, -1, 0))) && C1 == C0)
|
||||
return SelectInst::Create(C1, A, D);
|
||||
}
|
||||
if (match(C, SELECT_MATCH(C0, 0, -1))) {
|
||||
Value *C1 = 0;
|
||||
if (match(D, m_Not(SELECT_MATCH(C1, 0, -1))) && C1 == C0)
|
||||
@ -4408,6 +4401,13 @@ Instruction *InstCombiner::visitOr(BinaryOperator &I) {
|
||||
if (match(B, m_Not(SELECT_MATCH(C1, 0, -1))) && C1 == C0)
|
||||
return SelectInst::Create(C1, D, A);
|
||||
}
|
||||
if (match(D, SELECT_MATCH(C0, -1, 0))) {
|
||||
Value *C1 = 0;
|
||||
if (match(C, m_Not(SELECT_MATCH(C1, -1, 0))) && C1 == C0)
|
||||
return SelectInst::Create(C1, A, B);
|
||||
if (match(A, m_Not(SELECT_MATCH(C1, -1, 0))) && C1 == C0)
|
||||
return SelectInst::Create(C1, C, B);
|
||||
}
|
||||
if (match(D, SELECT_MATCH(C0, 0, -1))) {
|
||||
Value *C1 = 0;
|
||||
if (match(C, m_Not(SELECT_MATCH(C1, 0, -1))) && C1 == C0)
|
||||
|
Loading…
Reference in New Issue
Block a user