Rework be15dfa88fb1 such that it works with GlobalISel which doesn't use EVT
authorDaniel Sanders <daniel_l_sanders@apple.com>
Mon, 13 Jan 2020 19:58:05 +0000 (11:58 -0800)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Mon, 13 Jan 2020 20:19:37 +0000 (12:19 -0800)
commita0f4600f4f0ece1d4779544513f5a70c6f0d78bf
tree6f6f8bb447568d540bd4971ca77cb8513c8b557e
parent231875e111facf6d15553dff9d7c04d3e9e4a404
Rework be15dfa88fb1 such that it works with GlobalISel which doesn't use EVT

Summary:
be15dfa88fb1 broke GlobalISel's usage of getSetCCInverse() which currently
appears to be limited to our out-of-tree backend. GlobalISel doesn't use
EVT's and isn't able to derive them from the information it has as it
doesn't distinguish between integer and floating point types (that
distinction is made by operations rather than values). Bring back the
bool version of getSetCCInverse() in a way that doesn't break the intent
of be15dfa88fb1 but also allows GlobalISel to continue using it.

Reviewers: spatel, bogner, arichardson

Reviewed By: arichardson

Subscribers: rovka, hiraditya, Petar.Avramovic, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D72309
llvm/include/llvm/CodeGen/ISDOpcodes.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp