aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShubham Sandeep Rastogi <srastogi22@apple.com>2025-03-20 14:48:53 -0700
committerGitHub <noreply@github.com>2025-03-20 14:48:53 -0700
commitcc86d7cb191a64489e837c68f299abb930f5c6cb (patch)
treed1b4d5f216ee9e6caf6c0e8be7597c95e072245d
parent8e777ff5bb1ad46794f8cbbad27724f59e0f2ce0 (diff)
downloadllvm-cc86d7cb191a64489e837c68f299abb930f5c6cb.zip
llvm-cc86d7cb191a64489e837c68f299abb930f5c6cb.tar.gz
llvm-cc86d7cb191a64489e837c68f299abb930f5c6cb.tar.bz2
Initialize aarch64-cond-br-tuning pass (#132087)
The call to the initializeAArch64CondBrTuningPass function is missing in the AArch64TargetMachine LLVMInitializeAArch64Target function. This means that the pass is not in the pass registry and options such as -run-pass=aarch64-cond-br-tuning and -stop-after=aarch64-cond-br-tuning cannot be used. This patch fixes that issue.
-rw-r--r--llvm/lib/Target/AArch64/AArch64TargetMachine.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp b/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
index 5c514bf..d85952b 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
+++ b/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
@@ -268,6 +268,7 @@ extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeAArch64Target() {
initializeAArch64StackTaggingPreRAPass(*PR);
initializeAArch64LowerHomogeneousPrologEpilogPass(*PR);
initializeAArch64DAGToDAGISelLegacyPass(*PR);
+ initializeAArch64CondBrTuningPass(*PR);
}
void AArch64TargetMachine::reset() { SubtargetMap.clear(); }