[PATCH] D36109: [CodeGen] Provide an advanced shrink-wrapping interface
    Lei Huang via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Aug 30 10:36:42 PDT 2017
    
    
  
lei added a comment.
Can you provide documentation on the various functions?  I was trying to extend this for PPC and I had a hard time trying to figure out what I needed to do enable to get this working.  I was able to see it did something for loops but it wasn't able to identify any shrink wrap opportunities for this simple tc:
  int doSomething(int a, int b);
  
  int test (int a, int b) {
    int c=a;
    if (a < b) {
      c = doSomething(0, a);
    }
    return c;
  }
https://reviews.llvm.org/D36109
    
    
More information about the llvm-commits
mailing list