llvm-project/llvm
Huihui Zhang 2ea5495759 [InstCombine][SVE] Fix InstCombiner::visitAllocaInst for scalable vector.
Summary:
DataLayout::getTypeAllocSize() return TypeSize. For cases where scalable
property doesn't matter (check for zero-sized alloca), we should explicitly
call getKnownMinSize() to avoid implicit type conversion to uint64_t, which is
invalid for scalable vector type.

Reviewers: sdesmalen, efriedma, spatel, apazos

Reviewed By: efriedma

Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D76386
2020-03-18 20:57:14 -07:00
..
benchmarks
bindings Add an SDK attribute to DICompileUnit 2020-03-11 14:14:06 -07:00
cmake [TypeSize] Allow returning scalable size in implicit conversion to uint64_t 2020-03-15 13:48:49 +00:00
docs [LangRef] fix typo in select poison explanation; NFC 2020-03-18 18:59:14 -04:00
examples Fix `warning: extra ‘;’` (NFC) 2020-03-18 14:22:10 +00:00
include CFGDiff: Simplify/common the begin/end implementations to use a common range helper 2020-03-18 20:56:11 -07:00
lib [InstCombine][SVE] Fix InstCombiner::visitAllocaInst for scalable vector. 2020-03-18 20:57:14 -07:00
projects
resources
runtimes [runtimes] When COMPILER_RT is enabled, consider SANITIZER prefixes 2020-03-11 14:22:20 -07:00
test [InstCombine][SVE] Fix InstCombiner::visitAllocaInst for scalable vector. 2020-03-18 20:57:14 -07:00
tools Fix ac1d23ed7d interaction with gold plugin 2020-03-18 11:44:17 +01:00
unittests [VPlan] Do not print mapping for Value2VPValue. 2020-03-18 21:44:07 +00:00
utils [lit] Add builtin support for flaky tests in lit 2020-03-18 18:04:01 -04:00
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt [TypeSize] Allow returning scalable size in implicit conversion to uint64_t 2020-03-15 13:48:49 +00:00
CODE_OWNERS.TXT Remove myself from CODE_OWNERS. 2020-02-25 11:59:29 +00:00
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt Test commit. 2020-03-14 18:08:26 -07:00
RELEASE_TESTERS.TXT
configure
llvm.spec.in

README.txt

The LLVM Compiler Infrastructure
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.