[PATCH] D19390: folding compares for distinct allocations

Anna Thomas via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 22 11:09:08 PDT 2016


anna added a comment.

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?


http://reviews.llvm.org/D19390





More information about the llvm-commits mailing list