[all-commits] [llvm/llvm-project] 5feaef: [TBAA] Generate tbaa.struct single field with char...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Mon Mar 11 12:41:05 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5feaef63c08b6fefb6b0eaff2270ccb14740cca2
https://github.com/llvm/llvm-project/commit/5feaef63c08b6fefb6b0eaff2270ccb14740cca2
Author: Florian Hahn <flo at fhahn.com>
Date: 2024-03-11 (Mon, 11 Mar 2024)
Changed paths:
M clang/lib/CodeGen/CodeGenTBAA.cpp
M clang/test/CodeGen/tbaa-struct.cpp
Log Message:
-----------
[TBAA] Generate tbaa.struct single field with char tag for unions. (#84370)
At the moment,distinct fields for each union member are generated. When
copying a union, we don't know which union member is active, so there's
no benefit from recording the different fields. It can result in
converting tbaa.struct fields to incorrect tbaa nodes when extracting
fields.
PR: https://github.com/llvm/llvm-project/pull/84370
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list