[AArch64][GlobalISel] Don't explicitly write to the zero register in emitCMN
authorJessica Paquette <jpaquette@apple.com>
Wed, 2 Dec 2020 00:21:41 +0000 (16:21 -0800)
committerJessica Paquette <jpaquette@apple.com>
Tue, 8 Dec 2020 18:42:05 +0000 (10:42 -0800)
commitce199667f65bcddc31c8c4be2b723f9132815fe6
tree73796c2e980bd639858d201b524950b658c2fe9d
parent3c01af9aeebe01030e6138cece02675d2f148bb3
[AArch64][GlobalISel] Don't explicitly write to the zero register in emitCMN

This case was missed in 78ccb0359d8da3269636d85933dd8afe50a2211f.

Differential Revision: https://reviews.llvm.org/D92438
llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
llvm/test/CodeGen/AArch64/GlobalISel/opt-fold-compare.mir