aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorAdam Paszke <apaszke@google.com>2023-12-01 15:51:48 +0100
committerGitHub <noreply@github.com>2023-12-01 15:51:48 +0100
commit65aab9e7222025f57c4bfc253d48c7b2ea8581da (patch)
tree9d314c05829e98ef789b6a09a27dc8f4cd92663a /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent93636581d3589b3b986c0080a82de7fc0bbd01cf (diff)
downloadllvm-65aab9e7222025f57c4bfc253d48c7b2ea8581da.zip
llvm-65aab9e7222025f57c4bfc253d48c7b2ea8581da.tar.gz
llvm-65aab9e7222025f57c4bfc253d48c7b2ea8581da.tar.bz2
[mlir][gpu] Generate multiple rank-specializations for tensor map cre… (#74082)
…ation The previous code was technically incorrect in that the type indicated that the memref only has 1 dimension, while the code below was happily dereferencing the size array out of bounds. Now, if the compiler doesn't get too smart about optimizations, this code *might even work*. But, if the compiler realizes that the array has 1 element it might starrt doing silly things. This generates a specialization per each supported rank, making sure we don't do any UB.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions