How can I setup the test suite to run with special opt flags? Specifically, I'd like to add -unroll-allow-partial -vectorize in order to test my autovectorizer, and then compare that to just having -unroll-allow-partial and also to just the regular -O3. Thanks in advance, Hal -- Hal Finkel Postdoctoral Appointee Leadership Computing Facility Argonne National Laboratory
Duncan Sands
2011-Nov-02 08:22 UTC
[LLVMdev] Running the test suite with special opt flags
Hi Hal, I think the testsuite has support for "opt-beta" which means running opt with special flags side by side with the usual opt. TEST.nightly.Makefile turns this on with ENABLE_OPTBETA. I took a peek at Makefile.programs to see how it is implemented, and as far as I can see it can't possibly actually work :( So probably the simplest thing is to run the testsuite once to get a baseline, then hard-wire these options on in std-compile-opts and run the testsuite again. Ciao, Duncan.> How can I setup the test suite to run with special opt flags? > Specifically, I'd like to add -unroll-allow-partial -vectorize in order > to test my autovectorizer, and then compare that to just having > -unroll-allow-partial and also to just the regular -O3. > > Thanks in advance, > Hal >
Duncan, Silly question, but how do I do that? I know how to turn on Vectorize by hand (because that's a flag that I added myself to the PassManagerBuilder), but how can I hard-code other command-line option flags? Is there a way of doing it without fooling with argv? Thanks again, Hal On Wed, 2011-11-02 at 09:22 +0100, Duncan Sands wrote:> Hi Hal, I think the testsuite has support for "opt-beta" which means > running opt with special flags side by side with the usual opt. > TEST.nightly.Makefile turns this on with ENABLE_OPTBETA. I took a > peek at Makefile.programs to see how it is implemented, and as far > as I can see it can't possibly actually work :( So probably the > simplest thing is to run the testsuite once to get a baseline, then > hard-wire these options on in std-compile-opts and run the testsuite > again. > > Ciao, Duncan. > > > How can I setup the test suite to run with special opt flags? > > Specifically, I'd like to add -unroll-allow-partial -vectorize in order > > to test my autovectorizer, and then compare that to just having > > -unroll-allow-partial and also to just the regular -O3. > > > > Thanks in advance, > > Hal > > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev-- Hal Finkel Postdoctoral Appointee Leadership Computing Facility Argonne National Laboratory