http://llvm.org/bugs/show_bug.cgi?id=3438
Summary: SROA could peel one level off struct, but doesn't
Product: new-bugs
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
In the following testcase, the alloca could be
turned into an alloca of type %bounds, and one
GEP index dropped.
%wrapper = type { %bounds }
%bounds = type { i32, i32 }
define void @f() {
entry:
%v = alloca %wrapper, align 8 ; <%wrapper*> [#uses=5]
%p = getelementptr %wrapper* %v, i32 0, i32 0 ; <%bounds*>
[#uses=1]
call void @use(%bounds* noalias sret %p)
ret void
}
declare void @use(%bounds* noalias sret)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs