[PATCH] D91806: [SVE] Remove warning from debug info on scalable vector.
Francesco Petrogalli via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 20 09:33:25 PST 2020
fpetrogalli marked an inline comment as done.
fpetrogalli added inline comments.
================
Comment at: llvm/lib/Transforms/Coroutines/CoroFrame.cpp:589
sort(FrameData.Allocas, [&](const auto &Iter1, const auto &Iter2) {
- return GetAllocaSize(Iter1) > GetAllocaSize(Iter2);
+ return TypeSize::isKnownGT(GetAllocaSize(Iter1), GetAllocaSize(Iter2));
});
----------------
We don't need to check whether the scalable flag matches here because we are sorting a container that (potentially) have both types of vectors.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91806/new/
https://reviews.llvm.org/D91806
More information about the cfe-commits
mailing list