http://llvm.org/bugs/show_bug.cgi?id=8616
Summary: gep+load/store is optimized differently that
insertvalue+store and load+extractvalue.
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
I have attached to ll files, that differ simply in the use of GEP vs
insert/extractvalue.
For gep.ll, opt -O3 optimizes most of the code away, and running opt -O3 gets
rid of a single extra store.
For ev.ll, opt -O3 optimizes much less, but then running opt -O3 on the output
again gets rid of all the alloca.
--
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