[LLVMbugs] [Bug 3438] New: SROA could peel one level off struct, but doesn't
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Thu Jan 29 07:14:51 PST 2009
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: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list