[PATCH] D12064: [GMR] isNonEscapingGlobalNoAlias() should look through Bitcasts/GEPs when looking at loads.

Michael Kuperstein via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 17 01:27:27 PDT 2015


mkuper added a comment.

Thanks for the idea, Hal. 
But, unless I'm missing something, this doesn't quite work, because the base condition is different.

Let's say you have:
%v = load i32, i32* @g1

isNonEscapingGlobalNoAlias(@g1, @g1) should return false, but isNonEscapingGlobalNoAlias(@g1, %v) should return true. 
So we can't just push @g1 onto the worklist.


http://reviews.llvm.org/D12064





More information about the llvm-commits mailing list