[SystemZ] Bugfix in adjustSubwordCmp()
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Wed, 15 Apr 2020 09:29:55 +0000 (11:29 +0200)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Wed, 15 Apr 2020 10:58:39 +0000 (12:58 +0200)
commit036242b8685402162f781eb1d97c4d60c6016c19
tree739d566be02dc047e8ff5f974f3611723dcf8793
parent2f951e99c66ffb202b0e5dff42d7419871593505
[SystemZ] Bugfix in adjustSubwordCmp()

adjustSubwordCmp() should not optimize a load of an i1 value. This is
achieved by checking that the size and store-size of the MemoryVT are the
same.

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

Review: Ulrich Weigand

Differential Revision: https://reviews.llvm.org/D78187
llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
llvm/test/CodeGen/SystemZ/int-cmp-59.ll [new file with mode: 0644]