[all-commits] [llvm/llvm-project] 734112: [GlobalISel][KnownBits] Early return on out of bou...
Konstantin Schwarz via All-commits
all-commits at lists.llvm.org
Mon Oct 12 09:39:42 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 734112343917a011676c2915c5e5d29803a51ba6
https://github.com/llvm/llvm-project/commit/734112343917a011676c2915c5e5d29803a51ba6
Author: Konstantin Schwarz <konstantin.schwarz at hightec-rt.com>
Date: 2020-10-12 (Mon, 12 Oct 2020)
Changed paths:
M llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
M llvm/unittests/CodeGen/GlobalISel/KnownBitsTest.cpp
Log Message:
-----------
[GlobalISel][KnownBits] Early return on out of bound shift amounts
If the known shift amount is bigger than or equal to the bitwidth of the type of the value to be shifted,
the result is target dependent, so don't try to infer any bits.
This fixes a crash we've seen in one of our internal test suites.
Reviewed By: arsenm
Differential Revision: https://reviews.llvm.org/D89232
More information about the All-commits
mailing list