We have several checks for both cl::opt and OptLevel over our
pass config, although these checks do not properly work if
default value of a cl::opt will be false. Create a helper to
use instead and properly handle it. NFC for now.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp | ||
---|---|---|
790 | I want to clean -O0 pipeline some more, so I will pass CodeGenOpt::Less there. Right now all such checks are done to distinguish between -O1 and -O2/-O3, so it is unused for a moment. | |
967 | Nope, default is CodeGenOpt::Default, which means >= Default, same as > Less. |
Should add a documentation comment