[llvm] [X86][SimplifyCFG] Support hoisting load/store with conditional faulting (PR #96878)

Shengchen Kan via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 3 22:06:00 PDT 2024


KanRobert wrote:

> @KanRobert As there are some potential miscompilations/crashes caused by other passes after SimplifyCFGPass, should we limit this optimization to only run in the late pipeline via `SimplifyCFGOptions`?

Do you mean sth like `FPM.addPass(SimplifyCFGPass(SimplifyCFGOptions().convertSwitchRangeToICmp(true)));`?

If so, where in the pipeline do you suggest doing this? @dtcxzyw 

https://github.com/llvm/llvm-project/pull/96878


More information about the llvm-commits mailing list