aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorPhilip Reames <preames@rivosinc.com>2025-03-27 11:04:00 -0700
committerGitHub <noreply@github.com>2025-03-27 11:04:00 -0700
commitd584cea064003f0c4c96e31a657fab1b2259a5c5 (patch)
tree82986716f862c8fd5f94abf3052485a161967539 /llvm/lib/Transforms/Utils/LoopUtils.cpp
parentaa207c3f054abb630be61cd60a11840a5c341c19 (diff)
downloadllvm-d584cea064003f0c4c96e31a657fab1b2259a5c5.zip
llvm-d584cea064003f0c4c96e31a657fab1b2259a5c5.tar.gz
llvm-d584cea064003f0c4c96e31a657fab1b2259a5c5.tar.bz2
[RISCV] Use TypeSize instead of uint64_t in getMachineMemOperand interface (#133274)
The primary reason is that if you pass a TypeSize without explicitly converting to LocationSize, you otherwise implicit convert to uint64_t to call the respective LocationSize constructor. This means that any scalable value becomes a runtime assertion failure. By replacing uint64_t with TypeSize in this API, we avoid the implicit conversion for TypeSize. uint64_t callers implicit convert to LocationSize (via the raw constructor) which should have unchanged behavior.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions