[llvm] [InstCombine] Copy flags of extractelement for extelt -> icmp combine (PR #86366)
Marc Auberer via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 24 08:36:34 PDT 2024
================
@@ -1058,6 +1058,17 @@ class CmpInst : public Instruction {
static CmpInst *Create(OtherOps Op, Predicate predicate, Value *S1,
Value *S2, const Twine &Name, BasicBlock *InsertAtEnd);
+ /// Construct a compare instruction, given the opcode, the predicate,
+ /// the two operands and the instruction to copy the flags from. Optionally
+ /// (if InstBefore is specified) insert the instruction into a BasicBlock
+ /// right before the specified instruction. The specified Instruction is
+ /// allowed to be a dereferenced end iterator. Create a CmpInst
+ static CmpInst *CreateWithCopiedFlags(OtherOps Op, Predicate Pred, Value *S1,
----------------
marcauberer wrote:
See #86441
https://github.com/llvm/llvm-project/pull/86366
More information about the llvm-commits
mailing list