[clang] [Clang] Remove 3-element vector load and store special handling (PR #104661)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 3 12:41:12 PDT 2024
================
@@ -45,7 +45,7 @@ void test3(packedfloat3 *p) {
*p = (packedfloat3) { 3.2f, 2.3f, 0.1f };
}
// CHECK: @test3(
-// CHECK: store <4 x float> {{.*}}, align 4
+// CHECK: store <3 x float> {{.*}}, align 4
----------------
efriedma-quic wrote:
> that sounds essentially what the option that was removed in this PR is doing
Yes, exactly.
> Does it make sense to move the logic to back end
The way LLVM IR is defined, a `<3 x float>` stores 12 bytes, and we can't really change that.
https://github.com/llvm/llvm-project/pull/104661
More information about the cfe-commits
mailing list