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

Shengchen Kan via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 30 22:18:45 PDT 2024


KanRobert wrote:

> opt -passes=simplifycfg -mattr=+cf reduced.ll -S

```
@dtcxzyw Rebased, still no error

bash$ opt -passes=simplifycfg -mattr=+cf reduced.ll -S
; ModuleID = 'reduced.ll'
source_filename = "reduced.ll"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"

define i64 @vm_exec_core(i1 %0) #0 {
common.ret:
  ret i64 0
}

attributes #0 = { "target-features"="+cf" }
```

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


More information about the llvm-commits mailing list