Reapply "[SystemZ] Bugfix in expansion of memmem operations."
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Wed, 10 May 2023 09:42:36 +0000 (11:42 +0200)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Wed, 10 May 2023 10:40:57 +0000 (12:40 +0200)
commit655f0fc4b96d02b1baa075a0bbd8dda936070796
tree38c7c4dfcacd769f8ecd141fb211ad3654db1fc1
parent7e2fbeb0174b706a26de8c26459d49592a987c6e
Reapply "[SystemZ] Bugfix in expansion of memmem operations."

The new test case showed that the NoPHIs flag needs to be cleared.

Original commit message:

[SystemZ] Bugfix in expansion of memmem operations.

Since NC, OC, and XC clobber CC, the EXRL_Pseudo targeting these must also be
marked to do so.

Original patch by uweigand.

Reviewed by: uweigand

Differential Revision: https://reviews.llvm.org/D150251

Fixes: https://github.com/llvm/llvm-project/issues/62572
llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
llvm/test/CodeGen/SystemZ/memmem-exrl-cc.mir [new file with mode: 0644]