mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-01 17:32:36 +00:00
simplify some code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81961 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
74dc72e89b
commit
58665d47ae
@ -379,9 +379,9 @@ Constant *llvm::ConstantFoldInstruction(Instruction *I, LLVMContext &Context,
|
|||||||
return ConstantFoldCompareInstOperands(CI->getPredicate(),
|
return ConstantFoldCompareInstOperands(CI->getPredicate(),
|
||||||
Ops.data(), Ops.size(),
|
Ops.data(), Ops.size(),
|
||||||
Context, TD);
|
Context, TD);
|
||||||
else
|
|
||||||
return ConstantFoldInstOperands(I->getOpcode(), I->getType(),
|
return ConstantFoldInstOperands(I->getOpcode(), I->getType(),
|
||||||
Ops.data(), Ops.size(), Context, TD);
|
Ops.data(), Ops.size(), Context, TD);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// ConstantFoldConstantExpression - Attempt to fold the constant expression
|
/// ConstantFoldConstantExpression - Attempt to fold the constant expression
|
||||||
@ -398,9 +398,8 @@ Constant *llvm::ConstantFoldConstantExpression(ConstantExpr *CE,
|
|||||||
return ConstantFoldCompareInstOperands(CE->getPredicate(),
|
return ConstantFoldCompareInstOperands(CE->getPredicate(),
|
||||||
Ops.data(), Ops.size(),
|
Ops.data(), Ops.size(),
|
||||||
Context, TD);
|
Context, TD);
|
||||||
else
|
return ConstantFoldInstOperands(CE->getOpcode(), CE->getType(),
|
||||||
return ConstantFoldInstOperands(CE->getOpcode(), CE->getType(),
|
Ops.data(), Ops.size(), Context, TD);
|
||||||
Ops.data(), Ops.size(), Context, TD);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// ConstantFoldInstOperands - Attempt to constant fold an instruction with the
|
/// ConstantFoldInstOperands - Attempt to constant fold an instruction with the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user