diff options
author | QingShan Zhang <qshanz@cn.ibm.com> | 2020-12-18 07:27:26 +0000 |
---|---|---|
committer | QingShan Zhang <qshanz@cn.ibm.com> | 2020-12-18 07:27:26 +0000 |
commit | 477b6505fa1d49339c81fbbda937dc8bb5e53cfd (patch) | |
tree | a63d9c17fcf4a6b3bd932c61b9aca9926c3ce2ed /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 4b388859f527f822a27bcee409242c421f199f1d (diff) | |
download | llvm-477b6505fa1d49339c81fbbda937dc8bb5e53cfd.zip llvm-477b6505fa1d49339c81fbbda937dc8bb5e53cfd.tar.gz llvm-477b6505fa1d49339c81fbbda937dc8bb5e53cfd.tar.bz2 |
[PowerPC] Select the D-Form load if we know its offset meets the requirement
The LD/STD likewise instruction are selected only when the alignment in
the load/store >= 4 to deal with the case that the offset might not be
known(i.e. relocations). That means we have to select the X-Form load
for %0 = load i64, i64* %arrayidx, align 2 In fact, we can still select
the D-Form load if the offset is known. So, we only query the load/store
alignment when we don't know if the offset is a multiple of 4.
Reviewed By: jji, Nemanjai
Differential Revision: https://reviews.llvm.org/D93099
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions