[PATCH] D19390: folding compares for distinct allocations
Sanjoy Das via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 22 11:24:17 PDT 2016
sanjoy added a comment.
In http://reviews.llvm.org/D19390#409243, @anna wrote:
> agreed. This would work since GEPs are not considered in `isAllocLikeFn`.
>
> Also, `LookThroughBitCast` being true just calls `stripPointerCast()`, so we can have the check as `V->stripPointerCast() != AI && isAllocLikeFn(V, TLI)`. Does that work?
That would work, but I think given that we're passing in false for `LookThroughBitCast` anyway (that's the default), I'd say lets not bother with that.
http://reviews.llvm.org/D19390
More information about the llvm-commits
mailing list