remove redundant size parameters to appendCombine and appendTranslate

This commit is contained in:
Joshua Warner
2014-05-03 21:02:43 -06:00
committed by Joshua Warner
parent d67820054e
commit 148d35bab5
3 changed files with 73 additions and 90 deletions

View File

@ -2668,11 +2668,8 @@ class MyCompiler: public Compiler {
appendCombine(&c,
op,
a->type.size(),
static_cast<Value*>(a),
b->type.size(),
static_cast<Value*>(b),
type.size(),
result);
return result;
}
@ -2685,7 +2682,7 @@ class MyCompiler: public Compiler {
and isFloatValue(a)));
Value* result = value(&c, a->type);
appendTranslate(
&c, op, a->type.size(), static_cast<Value*>(a), a->type.size(), result);
&c, op, static_cast<Value*>(a), result);
return result;
}
@ -2696,9 +2693,7 @@ class MyCompiler: public Compiler {
Value* result = value(&c, resType);
appendTranslate(&c,
lir::Float2Float,
a->type.size(),
static_cast<Value*>(a),
resType.size(),
result);
return result;
}
@ -2710,9 +2705,7 @@ class MyCompiler: public Compiler {
Value* result = value(&c, resType);
appendTranslate(&c,
lir::Float2Int,
a->type.size(),
static_cast<Value*>(a),
resType.size(),
result);
return result;
}
@ -2724,9 +2717,7 @@ class MyCompiler: public Compiler {
Value* result = value(&c, resType);
appendTranslate(&c,
lir::Int2Float,
a->type.size(),
static_cast<Value*>(a),
resType.size(),
result);
return result;
}