[PATCH] D106189: [InstSimplify] Expose generic interface for replaced operand simplification

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 16 14:11:44 PDT 2021


lebedev.ri added inline comments.


================
Comment at: llvm/include/llvm/Analysis/InstructionSimplify.h:322-327
+/// See if V simplifies when its operand Op is replaced with RepOp. If not,
+/// return null.
+/// AllowRefinement specifies whether the simplification can be a refinement
+/// (e.g. 0 instead of poison), or whether it needs to be strictly identical.
+Value *simplifyWithOpReplaced(Value *V, SmallVectorImpl<Value *> &NewOps,
+                              const SimplifyQuery &Q, bool AllowRefinement);
----------------



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106189/new/

https://reviews.llvm.org/D106189



More information about the llvm-commits mailing list