search for: _z6escapepi

Displaying 2 results from an estimated 2 matches for "_z6escapepi".

2014 Oct 11
4
[LLVMdev] Optimization hints for "constant" loads
...non-starter in it's current form. ; Function Attrs: uwtable define zeroext i1 @_Z4testv() #0 { %1 = tail call noalias i8* @_Znwm(i64 4) #3 %2 = bitcast i8* %1 to i32* store i32 5, i32* %2, align 4, !tbaa !1 %discard = call {}* @llvm.invariant.start(i64 4, i8* %1) tail call void @_Z6escapePi(i32* %2) %3 = load i32* %2, align 4, !tbaa !1 %4 = icmp eq i32 %3, 5 <-- this conditional should be folded away and is not ret i1 %4 } declare {}* @llvm.invariant.start(i64, i8*) ; Function Attrs: nobuiltin declare noalias i8* @_Znwm(i64) #1 declare void @_Z6escapePi(i32*) #2 It als...
2014 Sep 10
7
[LLVMdev] Optimization hints for "constant" loads
I'm looking at how to optimize IR which contains reads from a field which is known to be initialized exactly once. I've got an idea on how to approach this, but wanted to see if others have alternate ideas or similar problems which might spark discussion. It feels like there's a potentially generally useful optimization hint here if we can generalize it sufficiently without