This pass adds pgo-memop-opt pass to the new pass manager.
It is in the old pass manager but somehow left out in the new pass manager.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Is it expected that we run this pass in the default -O1/-O2 pipeline?
I thought this was enabled only when -fprofile-instr-{generate/use} is specified.
lib/Passes/PassBuilder.cpp | ||
---|---|---|
365 | check PGOOpt && !PGOOpt->ProfileUseFile.empty() |
Comment Actions
Don't we have a test for this? We should (I thought the PGO pipeline was tested, if it's not, you can probably add a test in a follow-up)
lib/Passes/PassBuilder.cpp | ||
---|---|---|
366 | Should checkProfileUseFile instead of SampleProfileFile. |
lib/Passes/PassBuilder.cpp | ||
---|---|---|
365 | Bonus point if you add a comment :) |
check PGOOpt && !PGOOpt->ProfileUseFile.empty()