[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


================
@@ -853,7 +863,7 @@ isSafeToSpeculativelyExecute(const Instruction *I, BasicBlock::iterator CtxI,
 bool isSafeToSpeculativelyExecuteWithOpcode(
     unsigned Opcode, const Instruction *Inst, const Instruction *CtxI = nullptr,
     AssumptionCache *AC = nullptr, const DominatorTree *DT = nullptr,
-    const TargetLibraryInfo *TLI = nullptr);
+    const TargetLibraryInfo *TLI = nullptr, bool UseOperandInfo = true);
----------------
dtcxzyw wrote:

```suggestion
    const TargetLibraryInfo *TLI = nullptr, bool UseVariableInfo = true);
```

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


More information about the llvm-commits mailing list