Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ...
- class Simplification
- operation exclusive-or
- else if (IsConstEqual(x, AllOnes(operation.Destination.Type)))
- {
- operation.TurnInto(
- Instruction.BitwiseNot,
- y
- );
- return true;
- }
- ...
- class Operation
- public void TurnInto(Instruction instruction, Operand destination, [NotNull] params Operand[] sources)
- {
- Instruction = instruction;
- if (Destination != destination)
- {
- SetDestination(destination);
- }
- SetSources(sources);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement