mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-21 03:32:21 +00:00
fix some formatting problems
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25110 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bfc89d3876
commit
2c822cce61
@ -235,7 +235,7 @@ struct EmptyRules : public TemplateRules<Constant, EmptyRules> {
|
||||
//
|
||||
struct BoolRules : public TemplateRules<ConstantBool, BoolRules> {
|
||||
|
||||
static Constant *LessThan(const ConstantBool *V1, const ConstantBool *V2){
|
||||
static Constant *LessThan(const ConstantBool *V1, const ConstantBool *V2) {
|
||||
return ConstantBool::get(V1->getValue() < V2->getValue());
|
||||
}
|
||||
|
||||
@ -800,13 +800,13 @@ static Instruction::BinaryOps evaluateRelation(const Constant *V1,
|
||||
if (SwappedRelation != Instruction::BinaryOpsEnd)
|
||||
return SetCondInst::getSwappedCondition(SwappedRelation);
|
||||
|
||||
} else if (const GlobalValue *CPR1 = dyn_cast<GlobalValue>(V1)){
|
||||
} else if (const GlobalValue *CPR1 = dyn_cast<GlobalValue>(V1)) {
|
||||
if (isa<ConstantExpr>(V2)) { // Swap as necessary.
|
||||
Instruction::BinaryOps SwappedRelation = evaluateRelation(V2, V1);
|
||||
if (SwappedRelation != Instruction::BinaryOpsEnd)
|
||||
return SetCondInst::getSwappedCondition(SwappedRelation);
|
||||
else
|
||||
return Instruction::BinaryOpsEnd;
|
||||
Instruction::BinaryOps SwappedRelation = evaluateRelation(V2, V1);
|
||||
if (SwappedRelation != Instruction::BinaryOpsEnd)
|
||||
return SetCondInst::getSwappedCondition(SwappedRelation);
|
||||
else
|
||||
return Instruction::BinaryOpsEnd;
|
||||
}
|
||||
|
||||
// Now we know that the RHS is a GlobalValue or simple constant,
|
||||
|
Loading…
x
Reference in New Issue
Block a user