llvm-project
1de721c4 - LowerTypeTests: Optimize two-phase check used by llvm.cond.loop.

Commit
27 days ago
LowerTypeTests: Optimize two-phase check used by llvm.cond.loop. When a type test has two phases and is used by llvm.cond.loop to implement a conditional trap, it is more efficient for two infinite loops to be generated. Arrange for this by having the pass detect the typical IR pattern used for conditional CFI traps and generate the second llvm.cond.loop if found. Part of this RFC: https://discourse.llvm.org/t/rfc-optimizing-conditional-traps/89456 Reviewers: fmayer, vitalybuka Reviewed By: vitalybuka Pull Request: https://github.com/llvm/llvm-project/pull/177687
Author
pcc pcc
Parents
Loading