[SystemZ] Use LA instead of AGR in eliminateFrameIndex().
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Thu, 8 Oct 2020 11:18:29 +0000 (13:18 +0200)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Fri, 9 Oct 2020 11:06:33 +0000 (13:06 +0200)
commitd851495f2fe614c4c860bda1bd3c80bfbe48360b
tree848bbbb8447430f5d034fac8586536014abdd92f
parentcaf28b0a1288eb06720acf11d7ad09186b27b74f
[SystemZ] Use LA instead of AGR in eliminateFrameIndex().

Since AGR clobbers CC it should not be used here.

Fixes https://bugs.llvm.org/show_bug.cgi?id=47736.

Review: Ulrich Weigand
Differential Revision: https://reviews.llvm.org/D89034
llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp
llvm/test/CodeGen/SystemZ/frame-14.ll
llvm/test/CodeGen/SystemZ/frame-16.ll