[all-commits] [llvm/llvm-project] 3479c5: PowerPC32:PIC: Update to bcl to fix branch predict...
Lei Huang via All-commits
all-commits at lists.llvm.org
Mon Apr 7 12:50:43 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3479c574667eec375cc4ed91e0d63aa2d408b62c
https://github.com/llvm/llvm-project/commit/3479c574667eec375cc4ed91e0d63aa2d408b62c
Author: Lei Huang <lei at ca.ibm.com>
Date: 2025-04-07 (Mon, 07 Apr 2025)
Changed paths:
M llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
M llvm/test/CodeGen/PowerPC/mcm-5.ll
A llvm/test/CodeGen/PowerPC/ppc32-pic-bcl.ll
M llvm/test/CodeGen/PowerPC/ppc32-pic-large.ll
M llvm/test/CodeGen/PowerPC/ppc32-pic.ll
Log Message:
-----------
PowerPC32:PIC: Update to bcl to fix branch prediction mis-predict issue (#134140)
Update `bl` to `bcl 20, 31, .+4` for 32bit PIC code gen so the link
stack is
not corrupted and cause mis-predict for the branch predictor.
fixes: https://github.com/llvm/llvm-project/issues/128644
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list