[clang] [clang] Avoid memcopy for small structure with padding (PR #71677)

2023-11-08 Thread via cfe-commits
https://github.com/serge-sans-paille updated https://github.com/llvm/llvm-project/pull/71677 >From d5934a4112166ce0375295b2347e7d5c43fdf5ed Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Wed, 8 Nov 2023 10:26:33 +0100 Subject: [PATCH 1/2] [clang] Avoid memcopy for small structure with p

[clang] [clang] Avoid memcopy for small structure with padding (PR #71677)

2023-11-08 Thread via cfe-commits
https://github.com/serge-sans-paille updated https://github.com/llvm/llvm-project/pull/71677 >From 388335f795186e06cd9dfc1ef22f882901959d4d Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Wed, 8 Nov 2023 10:26:33 +0100 Subject: [PATCH 1/2] [clang] Avoid memcopy for small structure with p

[clang] [clang] Avoid memcopy for small structure with padding (PR #71677)

2023-11-08 Thread via cfe-commits
https://github.com/serge-sans-paille updated https://github.com/llvm/llvm-project/pull/71677 >From a35d351a8eb811ed59734ea49c8f912771ef5c2e Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Wed, 8 Nov 2023 10:26:33 +0100 Subject: [PATCH 1/2] [clang] Avoid memcopy for small structure with p

[clang] [clang] Avoid memcopy for small structure with padding (PR #71677)

2023-11-08 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 26ab444e88fc8fdd554e5a9381a68b7b5e63b6fd 700376a265e3f349f5faece740e1823a2f19930c --

[clang] [clang] Avoid memcopy for small structure with padding (PR #71677)

2023-11-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: None (serge-sans-paille) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/71677.diff 2 Files Affected: - (modified) clang/lib/CodeGen/CGDecl.cpp (+10-9) - (modified) clang/test/CodeGenCXX/auto-var-init.cpp (+19

[clang] [clang] Avoid memcopy for small structure with padding (PR #71677)

2023-11-08 Thread via cfe-commits
https://github.com/serge-sans-paille created https://github.com/llvm/llvm-project/pull/71677 None >From 700376a265e3f349f5faece740e1823a2f19930c Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Wed, 8 Nov 2023 10:26:33 +0100 Subject: [PATCH] [clang] Avoid memcopy for small structure with