[PATCH] D86928: [SVE][CodeGen] Fix TypeSize/ElementCount related warnings in sve-split-store.ll
Sander de Smalen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 14 06:24:04 PDT 2020
sdesmalen added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:557
ReplaceNode(SDValue(Node, 0), Result);
- } else if (StWidth & (StWidth - 1)) {
+ } else if (!isPowerOf2_64(StWidth.getKnownMinSize())) {
// If not storing a power-of-2 number of bits, expand as two stores.
----------------
You're using `getKnownMinSize()` here but using `getFixedSize()` below on line 560. Is this missing a condition, e.g.:
```!StVT.isScalableVector() && !isPowerOf2_64(StWidth.getFixedSize())```
or perhaps (because it seems like this only applies to integers):
```!StVT.isVector() && !isPowerOf2_64(StWidth.getFixedSize())```
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86928/new/
https://reviews.llvm.org/D86928
More information about the llvm-commits
mailing list