aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ObjectFile.cpp
diff options
context:
space:
mode:
authorChristopher Tetreault <ctetreau@quicinc.com>2020-05-01 10:58:50 -0700
committerChristopher Tetreault <ctetreau@quicinc.com>2020-05-01 12:35:08 -0700
commit0ee7b7e3f1bc3079adf9cae99de2d5508b2a7275 (patch)
treecf5b92bde48ced1aae29c543262f1f034ffd7a40 /llvm/lib/Object/ObjectFile.cpp
parent78769923fe03b6d8dfcd3dad69b6f3eff5a2f813 (diff)
downloadllvm-0ee7b7e3f1bc3079adf9cae99de2d5508b2a7275.zip
llvm-0ee7b7e3f1bc3079adf9cae99de2d5508b2a7275.tar.gz
llvm-0ee7b7e3f1bc3079adf9cae99de2d5508b2a7275.tar.bz2
[SVE] Fix invalid use of VectorType::getNumElements() in PatternMatch
Summary: Update cst_pred_ty to only work on FixedVectorType. It operates on integers and integer vectors, and returns true if the predicate returns true for all elements of the vector. This operation is not possible on scalable vectors. Make this behavior explicit in the code and document the fact that it only tests fixed width vectors. Identified by test LLVM.Transforms/InstCombine::nsw.ll Reviewers: efriedma, c-rhodes, david-arm, spatel Reviewed By: david-arm Subscribers: tschuett, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D79195
Diffstat (limited to 'llvm/lib/Object/ObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions