https://bugs.llvm.org/show_bug.cgi?id=42349

            Bug ID: 42349
           Summary: Assertion failed: ((!isa<FPMathOperator>(Neg) ||
                    Neg->isFast()) && "Expecting FastMathFlags!"),
                    function LowerNegateToMultiply, file
                    lib/Transforms/Scalar/Reassociate.cpp
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Created attachment 22127
  --> https://bugs.llvm.org/attachment.cgi?id=22127&action=edit
Reproducer

After r363813, the reassociate pass hits an assertion on the attached IR:
Assertion failed: ((!isa<FPMathOperator>(Neg) || Neg->isFast()) && "Expecting
FastMathFlags!"), function LowerNegateToMultiply, file
lib/Transforms/Scalar/Reassociate.cpp

To reproduce:
opt -reassociate reassociate.ll -S -o -

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to