[llvm-bugs] [Bug 42349] New: Assertion failed: ((!isa<FPMathOperator>(Neg) || Neg->isFast()) && "Expecting FastMathFlags!"), function LowerNegateToMultiply, file lib/Transforms/Scalar/Reassociate.cpp

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jun 20 14:15:27 PDT 2019


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: unassignedbugs at nondot.org
          Reporter: quentin.colombet at gmail.com
                CC: llvm-bugs at lists.llvm.org

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190620/5c2cf03f/attachment.html>


More information about the llvm-bugs mailing list