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: unassignedb...@nondot.org
Reporter: dma...@mozilla.com
CC: llvm-bugs@lists.llvm.org, sguel...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs