ir_opt: Remove redundant shift instructions

This commit is contained in:
MerryMage 2017-02-18 21:46:36 +00:00
parent f9e7e85308
commit bbeea72eba
4 changed files with 48 additions and 7 deletions

View file

@ -305,6 +305,7 @@ void Inst::Invalidate() {
}
value = {};
}
op = Opcode::Void;
}
void Inst::ReplaceUsesWith(Value replacement) {

View file

@ -1,5 +1,6 @@
// opcode name, return type, arg1 type, arg2 type, arg3 type, ...
OPCODE(Void, T::Void, )
OPCODE(Identity, T::Opaque, T::Opaque )
OPCODE(Breakpoint, T::Void, )