1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/unittests
Jessica Paquette e43ddd00f6 [GlobalISel] Fix computing known bits for loads with range metadata
In GlobalISel, if you have a load into a small type with a range, you'll hit
an assert if you try to compute known bits on it starting at a larger type.

e.g.

```
%x:_(s8) = G_LOAD %whatever(p0) :: (load 1 ... !range !n)
...
%y:_(s32) = G_SOMETHING %x
```

When we walk through G_SOMETHING and hit the load, the width of our known bits
is 32. However, the width of the range is going to be 8. This will cause us
to hit an assert.

To fix this, make computeKnownBitsFromRangeMetadata zero extend or truncate
the range type to match the bitwidth of the known bits we're calculating.

Add a testcase in CodeGen/GlobalISel/KnownBitsTest.cpp to reflect that this
works now.

https://reviews.llvm.org/D85375
2020-08-06 16:47:07 -07:00
..
ADT Re-land "[PowerPC] Remove QPX/A2Q BGQ/BGP CNK support" 2020-07-28 14:00:11 +00:00
Analysis [NFC]{MLInliner] Point out the tests' model dependencies 2020-08-06 09:57:26 -07:00
AsmParser [SVE] Remove calls to VectorType::getNumElements from AsmParserTest 2020-07-07 14:55:42 -07:00
BinaryFormat [BinaryFormat] Add formatv support for DW_OP constants 2020-06-08 15:27:44 +02:00
Bitcode [strictfp] Replace dangling strictfp attrs with nobuiltin 2020-06-15 10:05:35 -04:00
Bitstream
CodeGen [GlobalISel] Fix computing known bits for loads with range metadata 2020-08-06 16:47:07 -07:00
DebugInfo [DWARFYAML] Fix unintialized value Is64BitAddrSize. NFC. 2020-08-05 00:28:17 +08:00
Demangle
ExecutionEngine [ORC] Refactor TrampolinePool to reduce virtual function calls. 2020-07-19 22:38:41 -07:00
Frontend [OpenMP][IRBuilder] Support allocas in nested parallel regions 2020-07-30 10:19:39 -05:00
FuzzMutate [SVE] Deprecate default false variant of VectorType::get 2020-06-16 15:16:11 -07:00
IR [PatternMatch] allow intrinsic form of min/max with existing matchers 2020-08-06 10:50:24 -04:00
LineEditor
Linker
MC [AIX][XCOFF] add symbol priority for the llvm-objdump -D -symbol-description 2020-05-29 11:08:51 -04:00
MI LIS: fix handleMove to properly extend main range 2020-07-07 11:52:32 -07:00
Object [ELF] Fixing an issue in Elf_Note_Impl::getDescAsStringRef 2020-06-16 10:08:31 +00:00
ObjectYAML [DWARFYAML][unittest] Refactor parseDWARFYAML(). 2020-07-09 12:00:22 +08:00
Option [OptTable] Support grouped short options 2020-07-17 09:32:43 -07:00
Passes Don't export symbols from clang/opt/llc if plugins are disabled. 2020-03-23 12:17:09 -07:00
ProfileData [llvm-cov] reset executation count to 0 after wrapped segment 2020-08-04 18:38:44 -07:00
Remarks
Support [CMake] Simplify CMake handling for zlib 2020-08-05 16:07:11 -07:00
TableGen Make unittests include path relative 2020-02-21 10:19:11 +01:00
Target [ARM] More unpredictable VCVT instructions. 2020-07-21 07:24:37 +01:00
TextAPI [llvm][TextAPI/MachO] clean up auto usages in tests, NFC 2020-06-15 19:59:42 -07:00
tools [llvm][NFC] Add missing 'override's in unittests/ 2020-07-17 17:35:59 -07:00
Transforms Attributor.h - remove unnecessary includes. NFCI. 2020-07-30 15:26:41 +01:00
XRay Use std::foo_t rather than std::foo in LLVM. 2020-02-11 15:12:51 -08:00
CMakeLists.txt Use INTERFACE_COMPILE_OPTIONS to disable -Wsuggest-override for any target that links to gtest 2020-07-27 08:37:01 -07:00
unittest.cfg.in