[llvm-bugs] [Bug 40644] New: Miscompile of indexed floating point constant store

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 7 04:39:53 PST 2019


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

            Bug ID: 40644
           Summary: Miscompile of indexed floating point constant store
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: jonathanchesterfield at gmail.com
                CC: llvm-bugs at lists.llvm.org

replaceStoreOfFPConstant called from DAGCombine replaces stores of floating
point constants with stores of integer constants without considering whether it
is an indexed or truncating store.

LegalizeDAG has the same oversight in OptimizeFloatStore.

A simple !isNormalStore() return would fix either, or a more comprehensive fix
would be to recreate indexed/truncating stores.

Thanks!

Jon

-- 
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/20190207/2727a50d/attachment.html>


More information about the llvm-bugs mailing list