[LegalizeDAG] Remove 'NeedInvert' code from expansion of BR_CC. Replace with an assert.
authorCraig Topper <craig.topper@intel.com>
Sun, 13 Jan 2019 19:33:30 +0000 (19:33 +0000)
committerCraig Topper <craig.topper@intel.com>
Sun, 13 Jan 2019 19:33:30 +0000 (19:33 +0000)
commit4978de36e41fbaefa2c08d764744e509cb32955c
treea74746e8feadede073ab5a0041b8620f39b9edef
parent0400e504459fa4a1583c46411f17ec94097e3d61
[LegalizeDAG] Remove 'NeedInvert' code from expansion of BR_CC. Replace with an assert.

I accidentally triggered this code while doing some experiments and it doesn't look lke it could possibly work.

It calls 'getNOT' on a node that should be a CondCode.

I think to do this right we would need to swap the branch target and the fallthrough target. But that's not easy to do. Or we could create an explicit SetCC and feed that into a new BR_CC?

llvm-svn: 351022
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp