Displaying 1 result from an estimated 1 matches for "_z5testgv".
Did you mean:
_z5test2v
2016 Dec 23
2
[canonicalization] GEP 0, 0
...rted digging into MemDep to enhance devirtualization and I found out
that it doesn't handle invariant.group if it will find GEP 0, 0.
If I understand it correctly getelementptr with zeros is just bitcast. Is
there any good reason why it is not canonicalized into bitcast?
Example:
define void @_Z5testGv() local_unnamed_addr #0 {
entry:
* %a* = alloca %struct.A, align 8
%0 = bitcast %struct.A* %a to i8*
call void @llvm.lifetime.start(i64 8, i8* nonnull %0) #3
* %1* = getelementptr inbounds %struct.A, %struct.A* %a, i64 0, i32 0
store i32 (...)** bitcast (i8** getelementptr inbounds ({ [3 x...