llvm-project
530eb634 - [PowerPC][XRay] Emit an exit sled for CR-bit and CTR conditional returns (#245879)

Commit
2 hours ago
[PowerPC][XRay] Emit an exit sled for CR-bit and CTR conditional returns (#245879) PATCHABLE_RET handled only BCCLR as a conditional return. The if-converter also predicates a return on a single CR bit (BCLR/BCLRn) or on CTR (BDZLR8/BDNZLR8, e.g. at the exit of a counted loop). These were emitted as-is, so the function exit was not instrumented. Branch around the sled on the inverted condition, as is done for BCCLR, and count that branch in the sled size. Depends on #247294. Assisted-by: Claude Code
Author
Parents
Loading