[llvm-bugs] [Bug 40110] New: [ConstantFolding] Saturated add/sub doesn't handle individual undef vector elements

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 20 03:11:16 PST 2018


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

            Bug ID: 40110
           Summary: [ConstantFolding] Saturated add/sub doesn't handle
                    individual undef vector elements
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm-dev at redking.me.uk
                CC: craig.topper at gmail.com, llvm-bugs at lists.llvm.org,
                    nikita.ppv at gmail.com, spatel+llvm at rotateright.com

As discussed on https://reviews.llvm.org/D55894, while scalar/vector undef args
are handled by the signed/unsigned saturated add/sub constant folding,
individual undef vector elements are not.

https://godbolt.org/z/lpSt8e

-- 
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/20181220/52fc5d4c/attachment.html>


More information about the llvm-bugs mailing list