[PATCH] D77849: [calcspillweights] mark LiveIntervals from INLINEASM_BR defs as not spillable
    Nick Desaulniers via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Apr 10 17:15:09 PDT 2020
    
    
  
nickdesaulniers added inline comments.
================
Comment at: llvm/test/CodeGen/X86/callbr-asm-regalloc.ll:10
+
+%struct.d = type { i8* }
+%struct.b = type {}
----------------
nickdesaulniers wrote:
> arsenm wrote:
> > This test is way too complicated. This really needs a MIR test
> That's fair.  It would be better to more precisely represent and test the issue, which would also aid review.  And it's time I learn to write some MIR tests.  For dumping MIR, do I just do `llc -print-after=finalize-isel` and write that to a file?  Is there an existing MIR test that you recommend I refer to in order to understand testing for cases where specific registers need to be or not to be spilled?
Nevermind, I found https://llvm.org/docs/MIRLangRef.html#mir-testing-guide. Looks like I have some reading to do.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77849/new/
https://reviews.llvm.org/D77849
    
    
More information about the llvm-commits
mailing list