[llvm-bugs] [Bug 43107] New: missed opt: function argument attribute propagation
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Aug 25 03:36:16 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43107
Bug ID: 43107
Summary: missed opt: function argument attribute propagation
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: gonzalobg88 at gmail.com
CC: llvm-bugs at lists.llvm.org
See (https://llvm.godbolt.org/z/QJIvwX). This LLVM-IR:
define void @bar(i32* %x) local_unnamed_addr #0 {
tail call void @foo(i32* %x)
ret void
}
declare void @foo(i32* noalias align 4 dereferenceable(4)) local_unnamed_addr
#0
attributes #0 = { nounwind nonlazybind }
is not optimized further by `opt`, but I'd expect the definition of `bar` to be
optimized to:
define void @bar(i32* noalias align 4 dereferenceable(4) %x) local_unnamed_addr
#0
--
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/20190825/12939ad4/attachment.html>
More information about the llvm-bugs
mailing list