OSDN Git Service

GlobalISel: handle G_SEQUENCE fallbacks gracefully.
authorTim Northover <tnorthover@apple.com>
Tue, 6 Dec 2016 18:38:38 +0000 (18:38 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 6 Dec 2016 18:38:38 +0000 (18:38 +0000)
commit3a783f8716bfc621355e8ae61daf3a2093c341fc
tree85057462a8647bbc2b998c70f5b6361bddf39d1d
parent22c48aa20e7c16074595bfb9fb1885337631fa50
GlobalISel: handle G_SEQUENCE fallbacks gracefully.

There were two problems:
  + AArch64 was reusing random data from its binary op tables, which is
    complete nonsense for G_SEQUENCE.
  + Even when AArch64 gave up and said it couldn't handle G_SEQUENCE,
    the generic code asserted.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288836 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalISel/RegBankSelect.cpp
lib/Target/AArch64/AArch64RegisterBankInfo.cpp
test/CodeGen/AArch64/GlobalISel/arm64-fallback.ll