mirror of
https://github.com/corda/corda.git
synced 2025-06-17 22:58:19 +00:00
remove redundant f2i & i2f aType parameter
This commit is contained in:
committed by
Joshua Warner
parent
c9313d5802
commit
b853f1a594
@ -2696,7 +2696,6 @@ class MyCompiler: public Compiler {
|
||||
{
|
||||
assert(&c, isFloatValue(a));
|
||||
assert(&c, resType.flavor() == ir::Type::Float);
|
||||
assert(&c, a->type.flavor() == ir::Type::Float);
|
||||
Value* result = value(&c, resType);
|
||||
appendTranslate(&c,
|
||||
lir::Float2Float,
|
||||
@ -2707,32 +2706,28 @@ class MyCompiler: public Compiler {
|
||||
return result;
|
||||
}
|
||||
|
||||
virtual ir::Value* f2i(ir::Type aType, ir::Type resType, ir::Value* a)
|
||||
virtual ir::Value* f2i(ir::Type resType, ir::Value* a)
|
||||
{
|
||||
assert(&c, aType == a->type);
|
||||
assert(&c, isFloatValue(a));
|
||||
assert(&c, resType.flavor() != ir::Type::Float);
|
||||
assert(&c, aType.flavor() == ir::Type::Float);
|
||||
Value* result = value(&c, resType);
|
||||
appendTranslate(&c,
|
||||
lir::Float2Int,
|
||||
aType.size(),
|
||||
a->type.size(),
|
||||
static_cast<Value*>(a),
|
||||
resType.size(),
|
||||
result);
|
||||
return result;
|
||||
}
|
||||
|
||||
virtual ir::Value* i2f(ir::Type aType, ir::Type resType, ir::Value* a)
|
||||
virtual ir::Value* i2f(ir::Type resType, ir::Value* a)
|
||||
{
|
||||
assert(&c, aType == a->type);
|
||||
assert(&c, isGeneralValue(a));
|
||||
assert(&c, resType.flavor() == ir::Type::Float);
|
||||
assert(&c, aType.flavor() != ir::Type::Float);
|
||||
Value* result = value(&c, resType);
|
||||
appendTranslate(&c,
|
||||
lir::Int2Float,
|
||||
aType.size(),
|
||||
a->type.size(),
|
||||
static_cast<Value*>(a),
|
||||
resType.size(),
|
||||
result);
|
||||
|
Reference in New Issue
Block a user