[llvm] [InstCombine] Do not use operand info in `replaceInInstruction` (PR #99492)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 21 07:51:57 PDT 2024


================
@@ -6760,15 +6760,16 @@ bool llvm::isSafeToSpeculativelyExecute(const Instruction *Inst,
                                         const Instruction *CtxI,
                                         AssumptionCache *AC,
                                         const DominatorTree *DT,
-                                        const TargetLibraryInfo *TLI) {
+                                        const TargetLibraryInfo *TLI,
+                                        bool UseOperandInfo) {
   return isSafeToSpeculativelyExecuteWithOpcode(Inst->getOpcode(), Inst, CtxI,
-                                                AC, DT, TLI);
+                                                AC, DT, TLI, UseOperandInfo);
 }
 
 bool llvm::isSafeToSpeculativelyExecuteWithOpcode(
     unsigned Opcode, const Instruction *Inst, const Instruction *CtxI,
-    AssumptionCache *AC, const DominatorTree *DT,
-    const TargetLibraryInfo *TLI) {
+    AssumptionCache *AC, const DominatorTree *DT, const TargetLibraryInfo *TLI,
+    bool UseOperandInfo) {
----------------
dtcxzyw wrote:

```suggestion
    bool UseVariableInfo) {
```

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


More information about the llvm-commits mailing list