[llvm-dev] How can change ADD instruction to SUB instruction

Ramakota Reddy via llvm-dev llvm-dev at lists.llvm.org
Fri Apr 5 04:17:38 PDT 2019


Hi All,

I have ADD instruction but I want change to SUB instruction in MachineCSE.cpp file.

Eg:
%8:gpr32 = MOVi32imm -655360000
nsw ADDWrr killed %7:gpr32, killed %8:gpr32

expected:
%8:gpr32 = MOVi32imm 655360000
nsw SUBSWrr killed %7:gpr32, killed %8:gpr32

Could any one please give your suggestions on this.

Thanks and Regards,
Ramakota Reddy.



IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190405/a69b7588/attachment-0001.html>


More information about the llvm-dev mailing list