Prior to r310876 one of our out-of-tree targets was enabling IPRA by modifying
the TargetOptions::EnableIPRA. This no longer works on current trunk since the
useIPRA() hook overrides any values that are set in advance. This patch adjusts
the behaviour of the hook so that API users and useIPRA() can both enable it
but useIPRA() cannot disable it if the API user already enabled it.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/CodeGen/TargetPassConfig.cpp | ||
---|---|---|
376 ↗ | (On Diff #115859) | I'm confused why you would want to still be directly setting this instead of using the new hook |
lib/CodeGen/TargetPassConfig.cpp | ||
---|---|---|
376 ↗ | (On Diff #115859) | For a given target, the hook only allows us to enable it for every compile or disable it for every compile. We need to be able to enable it for some compiles and disable it for others. |