aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorChristopher Tetreault <ctetreau@quicinc.com>2020-05-05 14:21:59 -0700
committerChristopher Tetreault <ctetreau@quicinc.com>2020-05-05 15:19:01 -0700
commit855e02e799b9b05babc39cba1cb121ad7ef50f57 (patch)
treef3bbaec1190a367483d39e975d232d029c4c90a8 /clang/lib/Frontend/CompilerInvocation.cpp
parent645ad5badbabdeca31de5c98ea8135c5a6e7d710 (diff)
downloadllvm-855e02e799b9b05babc39cba1cb121ad7ef50f57.zip
llvm-855e02e799b9b05babc39cba1cb121ad7ef50f57.tar.gz
llvm-855e02e799b9b05babc39cba1cb121ad7ef50f57.tar.bz2
[SVE] Fix invalid usage of getNumElements() in InstCombineMulDivRem
Summary: getLogBase2 tries to iterate over the number of vector elements. Since the number of elements of a scalable vector is unknown at compile time, we must return null if the input type is scalable. Identified by test LLVM.Transforms/InstCombine::nsw.ll Reviewers: efriedma, fpetrogalli, kmclaughlin, spatel Reviewed By: efriedma, fpetrogalli Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D79197
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions