llvm-capstone/llvm
Craig Topper a37df84f99 [SelectionDAG][RISCV] Remove code for handling too small shift type from SimplifyDemandedBits.
This code detected that the type returned from getShiftAmountTy was
too small to hold the constant shift amount. But it used the full
type size instead of scalar type size leading it to crash for
scalable vectors.

This code was necessary when getShiftAmountTy would always
return the target preferred shift amount type for scalars even when
the type was an illegal type larger than the target supported. For
vectors, getShiftAmountTy has always returned the vector type.

Fortunately, getShiftAmountTy was fixed a while ago to detect that
the target's preferred size for scalars is not large enough for the
type. So we can delete this code.

Switched to use getShiftAmountConstant to further simplify the code.

Fixs PR61561.
2023-03-21 11:08:19 -07:00
..
benchmarks
bindings [ConstExpr] Remove select constant expression 2023-03-16 10:32:08 +01:00
cmake [cmake] Quote args when generating /libpath option specifying runtime dir for link/lld-link 2023-03-10 14:12:46 -08:00
docs [LLDB] Show sub type of signals when debugging a core file 2023-03-21 09:10:09 +00:00
examples [Passes] Remove some legacy passes 2023-03-10 17:17:00 -08:00
include [AlwaysInliner] Make legacy pass like the new pass 2023-03-21 11:04:22 -07:00
lib [SelectionDAG][RISCV] Remove code for handling too small shift type from SimplifyDemandedBits. 2023-03-21 11:08:19 -07:00
projects
resources
runtimes
test [SelectionDAG][RISCV] Remove code for handling too small shift type from SimplifyDemandedBits. 2023-03-21 11:08:19 -07:00
tools [llvm-jitlink] Fix typo in description of llvm-jitlink's -alias option. 2023-03-20 20:12:22 -07:00
unittests [llvm][support] Fix ScopedPrinterTest on AIX 2023-03-21 17:36:20 +00:00
utils [gn build] Port da8260a9b1 2023-03-21 12:38:15 +00:00
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt Revert "Reland "[CMake] Bumps minimum version to 3.20.0."" 2023-03-18 20:32:43 +01:00
CODE_OWNERS.TXT
configure
CREDITS.TXT
LICENSE.TXT
llvm.spec.in
README.txt
RELEASE_TESTERS.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.