[llvm-bugs] [Bug 24571] New: Constant folding code for sqrt looks wrong

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 25 10:02:10 PDT 2015


            Bug ID: 24571
           Summary: Constant folding code for sqrt looks wrong
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: schnetter at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

I am looking at line 1523 of lib/Analysis/ConstantFolding.cpp, which reads

        else if (IntrinsicID == Intrinsic::sqrt &&

This line lives in a switch branch that checks whether the name of the
intrinsic starts with "l", and which handles "log" and "log10". It looks as if
this code should be moved further down to where "sqrt" is handled.

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/20150825/67a4ad85/attachment.html>

More information about the llvm-bugs mailing list