[PATCH] D12781: PGO IR-level instrumentation infrastructure
    Sean Silva via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Nov 19 18:40:14 PST 2015
    
    
  
silvas added a comment.
These test files look like they are just a dump of IR generated from a C/C++, which is extremely verbose and has a lot of inessential details. I also don't like checking in binary profdata files. Overall these tests seem extremely brittle. I also don't understand why the test files have names like "for" or "goto" or "ifelse". Those concepts don't exist in the IR. Surely the tests should have names like "criticaledge" etc.
It seems like this testing might be more readable as C++ unit tests. Using the new pass manager this should be easy to wire up. I think the hardest part would be to stub out IndexedInstrProfReader.
http://reviews.llvm.org/D12781
    
    
More information about the llvm-commits
mailing list