[PATCH] D17936: [LICM] Don't silently ignore constant expressions in promoteLoopAccessesToScalars()

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 11 18:08:36 PST 2016


reames added a comment.

Ah, that was really helpful.  This is definitely an AST bug.  
"bitcast (i32* getelementptr inbounds ([4 x i32], [4 x i32]* @v, i32 0, i32 1) to i8*" and "getelementptr inbounds ([4 x i32], [4 x i32]* @v, i32 0, i32 1)" are the same address and thus must be must alias.  Both of them should be appearing in the alias set.  The fact they're not is very surprising.


http://reviews.llvm.org/D17936





More information about the llvm-commits mailing list