]> granicus.if.org Git - llvm/commit
[SelectionDAG] Add a OPC_CheckChild2CondCode to SelectionDAGISel to remove a MoveChil...
authorCraig Topper <craig.topper@intel.com>
Mon, 25 Feb 2019 03:11:44 +0000 (03:11 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 25 Feb 2019 03:11:44 +0000 (03:11 +0000)
commit82bff05bd600d84039bbb6ab50235418e372a218
tree27033c1fa3ba3a0c3364f47ccd91486ec99e440e
parent7cb6f240317bf85f62b8351d7e7ddbd1852e9113
[SelectionDAG] Add a OPC_CheckChild2CondCode to SelectionDAGISel to remove a MoveChild and MoveParent pair.

OPC_CheckCondCode is always used as operand 2 of a setcc. And its always surrounded by a MoveChild2 and a MoveParent. By having a dedicated opcode for this case we can reduce the number of bytes needed for this pattern from 4 bytes to 2.

This saves ~3000 bytes in the X86 table.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354763 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAGISel.h
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
utils/TableGen/DAGISelMatcher.cpp
utils/TableGen/DAGISelMatcher.h
utils/TableGen/DAGISelMatcherEmitter.cpp
utils/TableGen/DAGISelMatcherOpt.cpp