diff options
author | Nikita Popov <npopov@redhat.com> | 2022-04-08 17:26:29 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-04-08 17:29:29 +0200 |
commit | 930a68765dff96927d706d258ef0c2ad9c7ec2ab (patch) | |
tree | 2c43903fa980fc2559db6535dfd40f2aa444f840 /llvm/unittests/Support/VirtualFileSystemTest.cpp | |
parent | 29fe998eaa38d52d0f764800e17917cff1375598 (diff) | |
download | llvm-930a68765dff96927d706d258ef0c2ad9c7ec2ab.zip llvm-930a68765dff96927d706d258ef0c2ad9c7ec2ab.tar.gz llvm-930a68765dff96927d706d258ef0c2ad9c7ec2ab.tar.bz2 |
[Loads] Check type size in bits during store to load forwarding
Rather than checking the rounded type store size, check the type
size in bits. We don't want to forward a store of i1 to a load
of i8 for example, even though they have the same type store size.
The padding bits have unspecified contents.
This is a partial fix for the issue reported at
https://reviews.llvm.org/D115924#inline-1179482,
the problem also needs to be addressed more generally in the
constant folding code.
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions