]> granicus.if.org Git - llvm/commit
[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)
commitf7f753b17fdc22f9c5babea3e8d7a7dc355e7bef
tree53aad4b8d1c79fcad4ee34b2363c94f07902d433
parentb1e7adfcfe49a3b13a8da65ec607a308e4d71b47
[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?

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351022 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp