[llvm] [AMDGPU][NewPM] Port TailDuplicate pass to NPM (PR #113293)
Akshat Oke via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 22 04:39:25 PDT 2024
================
@@ -70,14 +73,15 @@ class EarlyTailDuplicate : public TailDuplicateBase {
} // end anonymous namespace
-char TailDuplicate::ID;
-char EarlyTailDuplicate::ID;
+char TailDuplicateLegacy::ID;
+char EarlyTailDuplicateLegacy::ID;
-char &llvm::TailDuplicateID = TailDuplicate::ID;
-char &llvm::EarlyTailDuplicateID = EarlyTailDuplicate::ID;
+char &llvm::TailDuplicateLegacyID = TailDuplicateLegacy::ID;
+char &llvm::EarlyTailDuplicateLegacyID = EarlyTailDuplicateLegacy::ID;
-INITIALIZE_PASS(TailDuplicate, DEBUG_TYPE, "Tail Duplication", false, false)
-INITIALIZE_PASS(EarlyTailDuplicate, "early-tailduplication",
+INITIALIZE_PASS(TailDuplicateLegacy, DEBUG_TYPE, "Tail Duplication", false,
+ false)
+INITIALIZE_PASS(EarlyTailDuplicateLegacy, "early-tailduplication",
"Early Tail Duplication", false, false)
bool TailDuplicateBase::runOnMachineFunction(MachineFunction &MF) {
----------------
optimisan wrote:
Right
https://github.com/llvm/llvm-project/pull/113293
More information about the llvm-commits
mailing list