[PATCH] D70794: [GlobalISel] Fix compiler crash lowering G_LOAD in AArch64.
Amara Emerson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 2 17:08:00 PST 2019
aemerson added inline comments.
================
Comment at: llvm/test/CodeGen/AArch64/GlobalISel/legalize-load-trunc.mir:14
+ ; CHECK: [[LOAD:%[0-9]+]]:_(s10) = G_LOAD %0(p0) :: (load 2)
+ ; CHECK: [[TRUNC1:%[0-9]+]]:_(s10) = G_TRUNC [[LOAD]](s16)
+ ; CHECK: [[TRUNC2:%[0-9]+]]:_(s1) = G_TRUNC [[LOAD]](s10)
----------------
This looks wrong. The resulting code is a load that generates an s10? But that value is then truncated down from s16 to s10? Shouldn't the load be 16 bit?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70794/new/
https://reviews.llvm.org/D70794
More information about the llvm-commits
mailing list