[llvm] [X86] Add missing pass initialization calls. (PR #82447)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 20 16:49:04 PST 2024


https://github.com/topperc created https://github.com/llvm/llvm-project/pull/82447

If the passes aren't registers, they don't show up in print-after-all.

I don't know if any others are missing. These are just the first two I noticed.

>From f5131119dc39910a0a0350f6a32a3820b9628dbe Mon Sep 17 00:00:00 2001
From: Craig Topper <craig.topper at sifive.com>
Date: Tue, 20 Feb 2024 16:47:08 -0800
Subject: [PATCH] [X86] Add missing pass initialization calls.

If the passes aren't registers, they don't show up in print-after-all.

I don't know if any others are missing. These are just the first two
I noticed.
---
 llvm/lib/Target/X86/X86TargetMachine.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/llvm/lib/Target/X86/X86TargetMachine.cpp b/llvm/lib/Target/X86/X86TargetMachine.cpp
index 9e4cf1ea99682a..279a1efdff9786 100644
--- a/llvm/lib/Target/X86/X86TargetMachine.cpp
+++ b/llvm/lib/Target/X86/X86TargetMachine.cpp
@@ -102,6 +102,8 @@ extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeX86Target() {
   initializeX86ReturnThunksPass(PR);
   initializeX86DAGToDAGISelPass(PR);
   initializeX86ArgumentStackSlotPassPass(PR);
+  initializeX86FixupInstTuningPassPass(PR);
+  initializeX86FixupVectorConstantsPassPass(PR);
 }
 
 static std::unique_ptr<TargetLoweringObjectFile> createTLOF(const Triple &TT) {



More information about the llvm-commits mailing list