diff options
author | Tim Northover <tnorthover@apple.com> | 2017-06-27 21:41:40 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2017-06-27 21:41:40 +0000 |
commit | 849fcca09004751b0fc9a2a93fd9eb985a4c6876 (patch) | |
tree | 1c0dfa1c5148e8e03cb63e5466e4d629f5226db2 /llvm/test | |
parent | ad3d174674539d05a7710aad59d5ed0308bfe13f (diff) | |
download | bcm5719-llvm-849fcca09004751b0fc9a2a93fd9eb985a4c6876.tar.gz bcm5719-llvm-849fcca09004751b0fc9a2a93fd9eb985a4c6876.zip |
GlobalISel: verify that a COPY is trivial when created.
Without this check, COPY instructions can actually be one of the generic casts
in disguise. That's confusing and bad.
At some point during ISel this restriction has to be relaxed since the fully
selected instructions will usually use COPY for those purposes. Right now I
think it's possible that relaxation occurs during RegBankSelect (hence the
change there). I'm not convinced that's where it belongs long-term though.
llvm-svn: 306470
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/CodeGen/AArch64/GlobalISel/legalize-exceptions.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/AArch64/GlobalISel/legalize-exceptions.ll b/llvm/test/CodeGen/AArch64/GlobalISel/legalize-exceptions.ll index d2452b86170..42ca367e122 100644 --- a/llvm/test/CodeGen/AArch64/GlobalISel/legalize-exceptions.ll +++ b/llvm/test/CodeGen/AArch64/GlobalISel/legalize-exceptions.ll @@ -22,7 +22,7 @@ declare void @_Unwind_Resume(i8*) ; CHECK: [[SEL:%[0-9]+]](s32) = G_PTRTOINT [[SEL_PTR]] ; CHECK: [[STRUCT_SEL:%[0-9]+]](s64) = G_INSERT {{%[0-9]+}}, [[SEL]](s32), 0 -; CHECK: [[PTR:%[0-9]+]](p0) = COPY [[STRUCT_PTR]](s64) +; CHECK: [[PTR:%[0-9]+]](p0) = G_INTTOPTR [[STRUCT_PTR]](s64) ; CHECK: G_STORE [[PTR]](p0), {{%[0-9]+}}(p0) ; CHECK: [[SEL_TMP:%[0-9]+]](s32) = G_EXTRACT [[STRUCT_SEL]](s64), 0 |