aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/GlobalStatus.cpp
diff options
context:
space:
mode:
authorEli Friedman <efriedma@quicinc.com>2021-07-31 14:09:59 -0700
committerEli Friedman <efriedma@quicinc.com>2021-07-31 14:09:59 -0700
commitbdd55b2f1810eb5a2474a36229d08a9e5ca870fc (patch)
tree75eff90807cd86027e05b5315b14e521e1ded4f2 /llvm/lib/Transforms/Utils/GlobalStatus.cpp
parent6eb2ffbaeb56c8b08ad17c823e1699b964e10b8b (diff)
downloadllvm-bdd55b2f1810eb5a2474a36229d08a9e5ca870fc.zip
llvm-bdd55b2f1810eb5a2474a36229d08a9e5ca870fc.tar.gz
llvm-bdd55b2f1810eb5a2474a36229d08a9e5ca870fc.tar.bz2
Fix the default alignment of i1 vectors.
Currently, the default alignment is much larger than the actual size of the vector in memory. Fix this to use a sane default. For SVE, temporarily remove lowering of load/store operations for predicates with less than 16 elements. The layout the backend was assuming for SVE predicates with less than 16 elements doesn't agree with the frontend. More work probably needs to be done here. This change is, strictly speaking, not backwards-compatible at the bitcode level. But probably nobody is actually depending on that; i1 vectors in memory are rare, and the code that does use them probably ends up forcing the alignment to something sane anyway. If we think this is a concern, I can restrict this to scalable vectors for now (where it's actually causing issues for me at the moment). Differential Revision: https://reviews.llvm.org/D88994
Diffstat (limited to 'llvm/lib/Transforms/Utils/GlobalStatus.cpp')
0 files changed, 0 insertions, 0 deletions