[llvm] [CodeGen] Support MachineFunctionProperties in PassConcept (PR #79749)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 29 01:40:25 PST 2024
================
@@ -576,8 +576,13 @@ class PassManager : public PassInfoMixin<
ExtraArgTs...>;
// Do not use make_unique or emplace_back, they cause too many template
// instantiations, causing terrible compile times.
- Passes.push_back(std::unique_ptr<PassConceptT>(
- new PassModelT(std::forward<PassT>(Pass))));
+ if constexpr (std::is_same_v<IRUnitT, MachineFunction>)
----------------
arsenm wrote:
Braces
https://github.com/llvm/llvm-project/pull/79749
More information about the llvm-commits
mailing list