Displaying 1 result from an estimated 1 matches for "performglobaladdresscombin".
Did you mean:
performglobaladdresscombine
2018 May 16
0
GlobalAddress lowering strategy
...nd:
ret i32 0
}
declare void @abort()
## Appendix: example 2
For this example, you produce fewer instructions if you don't fold the
offset into the global and instead rely on MachineCSE to remove
redundant instructions for forming the base global address. AArch64
will fold in the offset in performGlobalAddressCombine.
@a = global [4 x i32] zeroinitializer, align 4
; Function Attrs: noreturn nounwind
define i32 @main() nounwind {
entry:
%0 = load i32, i32* getelementptr inbounds ([4 x i32], [4 x i32]*
@a, i32 0, i32 0), align 4
%cmp = icmp eq i32 %0, 0
br i1 %cmp, label %if.end, label %if.then
if.then:...