aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/CommandLineTest.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-01-28 17:22:58 +0100
committerNikita Popov <npopov@redhat.com>2022-02-09 09:35:01 +0100
commit68c1eeb4bad18753dbaa053a6c919c8f1a23fb9c (patch)
tree124db857c8c05284e9b262b6ad4d6f0e5426fd2b /llvm/unittests/Support/CommandLineTest.cpp
parent47995a0ec92643f8b799c19103ed2c9222e63221 (diff)
downloadllvm-68c1eeb4bad18753dbaa053a6c919c8f1a23fb9c.zip
llvm-68c1eeb4bad18753dbaa053a6c919c8f1a23fb9c.tar.gz
llvm-68c1eeb4bad18753dbaa053a6c919c8f1a23fb9c.tar.bz2
[ArgPromotion] Make implementation offset based
This rewrites ArgPromotion to be based on offsets rather than GEP structure. We inspect all loads at constant offsets and remember which types are loaded at which offsets. Then we promote based on those types. This generalizes ArgPromotion to work with bitcasted loads, and is compatible with opaque pointers. This patch also fixes incorrect handling of alignment during argument promotion. Previously, the implementation only checked that the pointer is dereferenceable, but was happy to speculate overaligned loads. (I would have fixed this separately in advance, but I found this hard to do with the previous implementation approach). Differential Revision: https://reviews.llvm.org/D118685
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions