[ARM] GlobalISel: Fix oversight in G_FCMP legalization
authorDiana Picus <diana.picus@linaro.org>
Tue, 11 Jul 2017 09:43:51 +0000 (09:43 +0000)
committerDiana Picus <diana.picus@linaro.org>
Tue, 11 Jul 2017 09:43:51 +0000 (09:43 +0000)
commit443135c6eb36d14f19cab449f6f23613c9cd101b
tree8a31756b39b6f35815fa0c4b028c30f2a4f92dd0
parent9c171406c63c4b60cf0cbae9949ce0b712d057ec
[ARM] GlobalISel: Fix oversight in G_FCMP legalization

We used to forget to erase the original instruction when replacing a
G_FCMP true/false. Fix this bug and make sure the tests check for it.

llvm-svn: 307639
llvm/lib/Target/ARM/ARMLegalizerInfo.cpp
llvm/test/CodeGen/ARM/GlobalISel/arm-legalize-fp.mir