[all-commits] [llvm/llvm-project] 4706a2: Avoid setting tbaa on the store of return type of ...
schittir via All-commits
all-commits at lists.llvm.org
Tue Dec 14 17:45:46 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4706a297fb9ebe6af91ee2c92e5eb196dc2785f7
https://github.com/llvm/llvm-project/commit/4706a297fb9ebe6af91ee2c92e5eb196dc2785f7
Author: Sindhu Chittireddy <sindhu.chittireddy at intel.com>
Date: 2021-12-14 (Tue, 14 Dec 2021)
Changed paths:
M clang/lib/CodeGen/CGStmt.cpp
M clang/lib/CodeGen/CodeGenFunction.h
A clang/test/CodeGen/avoidTBAAonASMstore.cpp
Log Message:
-----------
Avoid setting tbaa on the store of return type of call to inline assembler.
In 32bit mode, attaching TBAA metadata to the store following the call
to inline assembler results in describing the wrong type by making a
fake lvalue(i.e., whatever the inline assembler happens to leave in
EAX:EDX.) Even if inline assembler somehow describes the correct type,
setting TBAA information on return type of call to inline assembler is
likely not correct, since TBAA rules need not apply to inline assembler.
Differential Revision: https://reviews.llvm.org/D115320
More information about the All-commits
mailing list