Skip to content

Commit b5b7f3d

Browse files
Initialize aarch64-cond-br-tuning pass (llvm#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. (cherry picked from commit cc86d7c)
1 parent 01e0751 commit b5b7f3d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/AArch64/AArch64TargetMachine.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeAArch64Target() {
264264
initializeAArch64LowerHomogeneousPrologEpilogPass(*PR);
265265
initializeAArch64DAGToDAGISelLegacyPass(*PR);
266266
initializeAArch64GlobalsTaggingPass(*PR);
267+
initializeAArch64CondBrTuningPass(*PR);
267268
}
268269

269270
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)