aboutsummaryrefslogtreecommitdiff
path: root/mlir/lib/Bytecode/Reader/BytecodeReader.cpp
diff options
context:
space:
mode:
authorAlex MacLean <amaclean@nvidia.com>2023-06-26 16:12:43 -0700
committerCraig Topper <craig.topper@sifive.com>2023-06-26 16:12:48 -0700
commit17aa37dd30ca2d0b85a151c0c8102946a2cdee4b (patch)
treece21a8d3876d874556919fe2e6bde68f6000d04c /mlir/lib/Bytecode/Reader/BytecodeReader.cpp
parent405d6cada4286bf58c2a2ee6858108a34e623b97 (diff)
downloadllvm-17aa37dd30ca2d0b85a151c0c8102946a2cdee4b.zip
llvm-17aa37dd30ca2d0b85a151c0c8102946a2cdee4b.tar.gz
llvm-17aa37dd30ca2d0b85a151c0c8102946a2cdee4b.tar.bz2
[SelectionDAG] Add memory size for CSEMap ID calculation
In NVPTX `ReplaceVectorLoad()`, i1 and i8 types are promoted to i16, followed by a truncate operation. Thus, v2i8 (or v2i1) and v2i16 will have the same VTList, which causes a collision in CSEMap. To differentiate the original VTList, let's add the size in generating an ID. Otherwise the compiler crashes in refineAlignment: `MMO->getSize() == getSize() && "Size mismatch!"` Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D153712
Diffstat (limited to 'mlir/lib/Bytecode/Reader/BytecodeReader.cpp')
0 files changed, 0 insertions, 0 deletions