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

Antonio Frighetto via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 5 09:35:56 PDT 2024


================
@@ -3214,6 +3238,112 @@ bool SimplifyCFGOpt::speculativelyExecuteBB(BranchInst *BI,
   BB->splice(BI->getIterator(), ThenBB, ThenBB->begin(),
              std::prev(ThenBB->end()));
 
+  // If the target supports conditional faulting,
+  // we are looking for code like the following:
----------------
antoniofrighetto wrote:

```suggestion
  // we look for the following pattern:
```

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


More information about the llvm-commits mailing list