Skip to content

Commit cc86d7c

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.
1 parent 8e777ff commit cc86d7c

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
@@ -268,6 +268,7 @@ extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeAArch64Target() {
268268
initializeAArch64StackTaggingPreRAPass(*PR);
269269
initializeAArch64LowerHomogeneousPrologEpilogPass(*PR);
270270
initializeAArch64DAGToDAGISelLegacyPass(*PR);
271+
initializeAArch64CondBrTuningPass(*PR);
271272
}
272273

273274
void AArch64TargetMachine::reset() { SubtargetMap.clear(); }

0 commit comments

Comments
 (0)