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.
This commit is contained in:
Shubham Sandeep Rastogi 2025-03-20 14:48:53 -07:00 committed by GitHub
parent 8e777ff5bb
commit cc86d7cb19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -268,6 +268,7 @@ extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeAArch64Target() {
initializeAArch64StackTaggingPreRAPass(*PR);
initializeAArch64LowerHomogeneousPrologEpilogPass(*PR);
initializeAArch64DAGToDAGISelLegacyPass(*PR);
initializeAArch64CondBrTuningPass(*PR);
}
void AArch64TargetMachine::reset() { SubtargetMap.clear(); }