llvm-project
f4eb722b - CodeGen: Derive WinEHPrepare PHI demotion from the personality (#225676)

Commit
73 days ago
CodeGen: Derive WinEHPrepare PHI demotion from the personality (#225676) Previously WinEHPrepare had a catchswitch-only pass option which was set based on the exception model in the pass config. The only special case using it was for Wasm EH, which reuses the Windows EH instruction but does not outline funclets so only needs the catchwitch dispatch phi handling. Instead check the properties of the personality function inside the pass, so the pass config is less dependent on knowing the exception model. Also, make sure the pass is a nop for dwarf EH which appears to be untested. Co-authored-by: Claude (Claude-Opus-4.8) <noreply@anthropic.com>
Author
Parents
Loading