[PATCH] D42103: [LSR] Don't force bases of foldable formulae to the final type.

Bevin Hansson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 30 06:50:07 PST 2018


ebevhan added a comment.

I replaced the other two instances of Ty with nullptr, and only observed a difference in one AMDGPU test case (preserve-addrspace-assert.ll), likely caused by the change on line 5022. Before, GEPs for double* and i32* were produced, but with the patch, GEPs for the containing struct are produced instead. This is probably because the expander was being forced to emit the pre-offset expressions as the final types (which were double* and i32*) but with the patch it will emit GEPs that take the struct pointer instead.

It's not really clear if this is better or not, and I can't really say that I have a test case that represents this change specifically. Should I upload a diff with the fixes to the test case or leave this patch as is?


https://reviews.llvm.org/D42103





More information about the llvm-commits mailing list