llvm-project
afa70813 - [LoopIdiom] Give a strlen formed in a funclet its funclet bundle (#246787)

Commit
1 day ago
[LoopIdiom] Give a strlen formed in a funclet its funclet bundle (#246787) When a strlen or wcslen loop is in a Windows EH funclet, the call that replaced it had no "funclet" operand bundle. WinEHPrepare then treats the call as implausible and makes the rest of the funclet unreachable, so a catch handler with such a loop traps as soon as the string isn't empty. Add the bundle of the preheader's funclet, as the inliner does, and leave the loop alone if the preheader isn't in exactly one funclet. Assisted-by: Claude Opus 5.5 (Anthropic)
Author
Parents
Loading