[llvm-bugs] [Bug 47477] New: Unreported changes from dead-GEP removal in ArgumentPromotion

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 9 13:32:42 PDT 2020


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

            Bug ID: 47477
           Summary: Unreported changes from dead-GEP removal in
                    ArgumentPromotion
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Interprocedural Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: dmajor at mozilla.com
                CC: llvm-bugs at lists.llvm.org, sguelton at redhat.com

Created attachment 23944
  --> https://bugs.llvm.org/attachment.cgi?id=23944&action=edit
deadgep.ll

With expensive checks:
$ opt -argpromotion -S deadgep.ll
Pass modifies its input and doesn't report it: Promote 'by reference' arguments
to scalars

It comes from
https://github.com/llvm/llvm-project/blob/1e392fc44584a4909b4dced02b8386b48963002b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp#L674-L676.

As an aside, while tracking this down, I also noticed some suspicious
modifications in
https://github.com/llvm/llvm-project/blob/1e392fc44584a4909b4dced02b8386b48963002b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp#L936-L947
but I wasn't able to cause a failure with that.

-- 
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/20200909/b33ba9a9/attachment.html>


More information about the llvm-bugs mailing list