[PATCH] D140917: [AVR] Optimize away cpi instructions when possible
    Ben Shi via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Jan  9 23:51:54 PST 2023
    
    
  
benshi001 added inline comments.
================
Comment at: llvm/test/CodeGen/AVR/fold-cmp.mir:84
+    BRNEk %bb.0.entry, implicit $sreg
+    RET
----------------
How about adding more cases
1. that there is a stand alone `CPI` (the `ANDI` maybe in a preceeding block), in which the CPI is not deleted.
2. `ADIW` + `CPI`, the `CPI` should not be deleted.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140917/new/
https://reviews.llvm.org/D140917
    
    
More information about the llvm-commits
mailing list