Revert "[X86] Use X86ISD::SUB instead of X86ISD::CMP in some places."
authorKadir Cetinkaya <kadircet@google.com>
Tue, 4 Feb 2020 10:21:53 +0000 (11:21 +0100)
committerKadir Cetinkaya <kadircet@google.com>
Tue, 4 Feb 2020 10:22:53 +0000 (11:22 +0100)
commitd2b6ac6ccda5ad8e38eee38e7ee46acad03540be
tree24c0aafd5b42efcc5f6bc0808e03fc6da18a36a3
parent362d00e0510ee75750499e2993a782428e377215
Revert "[X86] Use X86ISD::SUB instead of X86ISD::CMP in some places."

This reverts commit 8413116bf10402eef12f556cb9d80b08faeb9890.

this seems to be causing crashes while compiling ncurses.
```
$ ./bin/llc bugpoint-reduced-simplified.ll
LLVM ERROR: Cannot emit physreg copy instruction
```

Here are the crashers: https://gist.github.com/kadircet/918f5bb97a2afe048cb875490edba46e

executing with an llc compiled at 904d54de9ba9f71e937b24e04ad5941281cd50b7 works fine.
llvm/lib/Target/X86/X86ISelLowering.cpp