remove redundant Compiler::load srcSelectType parameter

This commit is contained in:
Joshua Warner
2014-05-01 11:52:13 -06:00
parent 4c4cc49510
commit 00253ce528
3 changed files with 3 additions and 31 deletions

View File

@ -2645,20 +2645,17 @@ class MyCompiler: public Compiler {
virtual Operand* load(ir::SignExtendMode signExtend,
ir::Type srcType,
ir::Type srcSelectType,
Operand* src,
ir::Type dstType)
{
assert(&c, dstType.size() >= TargetBytesPerWord);
assert(&c, srcType.flavor() == srcSelectType.flavor());
assert(&c, srcType.flavor() == dstType.flavor());
assert(&c, srcType == srcSelectType);
Value* dst = value(&c, static_cast<Value*>(src)->type);
appendMove(&c,
signExtend == ir::SignExtend ? lir::Move : lir::MoveZ,
srcType.size(),
srcSelectType.size(),
srcType.size(),
static_cast<Value*>(src),
dstType.size(),
dst);