[llvm-dev] How to prevent llvm's default optimization

Ben Shi via llvm-dev llvm-dev at lists.llvm.org
Mon Jun 29 07:13:15 PDT 2020


Hello, 
I have an instruction pattern like
  %2 = add i32 %0, 25
  %3 = mul i32 %2, 525


and llvm will optimize it to
%2 = mul i32 %0, 525
%3 = add i32 %2, 12525


how to prevent it? 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200629/937962d6/attachment-0001.html>


More information about the llvm-dev mailing list