Skip to content

Conversation

@topperc
Copy link
Collaborator

@topperc topperc commented Feb 21, 2024

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.

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.
@llvmbot
Copy link
Member

llvmbot commented Feb 21, 2024

@llvm/pr-subscribers-backend-x86

Author: Craig Topper (topperc)

Changes

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.


Full diff: https://github.com/llvm/llvm-project/pull/82447.diff

1 Files Affected:

  • (modified) llvm/lib/Target/X86/X86TargetMachine.cpp (+2)
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) {

Copy link
Contributor

@phoebewang phoebewang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@topperc topperc merged commit e4057aa into llvm:main Feb 21, 2024
@topperc topperc deleted the pr/x86-pass-init branch February 21, 2024 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants