[llvm] [clang] [IR] Fix GEP offset computations for vector GEPs (PR #75448)
Jannik Silvanus via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 14 07:22:15 PST 2023
================
@@ -111,6 +111,20 @@ define void @test_evaluate_gep_as_ptrs_array(ptr addrspace(2) %B) {
ret void
}
+define void @test_overaligned_vec(i8 %B) {
+ ; This should be turned into a constexpr instead of being an instruction
+; CHECK-LABEL: @test_overaligned_vec(
+; TODO: In this test case, half is overaligned to 32 bits.
+; Vectors are bit-packed and don't respect alignment.
+; Thus, the byte offset of the second half in <2 x half> is 2 bytes, not 4 bytes:
----------------
jasilvanus wrote:
Thanks, I moved the first comment away. The TODO is already removed in the main commit of this PR.
https://github.com/llvm/llvm-project/pull/75448
More information about the cfe-commits
mailing list