[SystemZ] Check for legality before doing LOAD AND TEST transformations.
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Mon, 15 Jan 2018 15:41:26 +0000 (15:41 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Mon, 15 Jan 2018 15:41:26 +0000 (15:41 +0000)
commit776a81a483da73b52f8d73ce441b0f03dbf5411b
tree741f6d0c18061180376d244be6a0d01830cfab21
parent264a683ec89b676fabce9ebdce671a86859caa73
[SystemZ]  Check for legality before doing LOAD AND TEST transformations.

Since a load and test instruction treat its operands as signed, it can only
replace a logical compare for EQ/NE uses.

Review: Ulrich Weigand
https://bugs.llvm.org/show_bug.cgi?id=35662

llvm-svn: 322488
llvm/lib/Target/SystemZ/SystemZElimCompare.cpp
llvm/test/CodeGen/SystemZ/load-and-test.mir [new file with mode: 0644]