Optimize load from aggregate stores

Adrian Prantl aprantl at apple.com
Fri Feb 7 10:01:33 PST 2014


On Feb 6, 2014, at 22:52, deadal nix <deadalnix at gmail.com> wrote:
> 
> I have some test cases, but I'm not sure how the LLVM test suite work and what is the right way to add them. I'll need some directions here to complete the diff.Anyway, the code :

To test a change to GVN it would be best to have a .ll file with a RUN: line that invokes opt (with the appropriate flags for GVN) and then CHECKs the output with FileCheck. You can grep for "RUN: opt” in test/ for some examples.
Assuming that you have source code for a testcase, you can extract an appropriate fragment from the output go -mllvm -print-after-all.

-- adrian



More information about the llvm-commits mailing list