[TargetLowering] Fix what look like copy/paste mistakes in compare with infinity...
authorCraig Topper <craig.topper@intel.com>
Mon, 2 Mar 2020 22:12:16 +0000 (14:12 -0800)
committerCraig Topper <craig.topper@intel.com>
Mon, 2 Mar 2020 22:12:16 +0000 (14:12 -0800)
commitadc69729ec85aea0a32e7bdf24e91e8f6178a38b
tree6ad9ec7ccf09c485985eb1b41ce3af680b294d51
parent80bf137fa132ea33204e98bbefa924afe9258a4e
[TargetLowering] Fix what look like copy/paste mistakes in compare with infinity handling SimplifySetCC.

I expect that the isCondCodeLegal checks should match that CC of
the node that we're going to create.

Rewriting to a switch to minimize repeated mentions of the same
constants.
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp