HomePhabricator

[X86][TableGen] Allow timm to appear in output patterns. Use it to remove…

Description

[X86][TableGen] Allow timm to appear in output patterns. Use it to remove ConvertToTarget opcodes from the X86 isel table.

We're now using a lot more TargetConstant nodes in SelectionDAG.
But we were still telling isel to convert some of them
to TargetConstants even though they already are. This is because
isel emits a conversion anytime the output pattern has a an 'imm'.
I guess for patterns in instructions we take the 'timm' from the
'set' pattern, but for Pat patterns with explcicit output we
previously had to say 'imm' since 'timm' wasn't allowed in outputs.

Details

Committed
ctopperSun, Sep 22, 12:49 PM
Parents
rL372524: [NFC][X86] Add BEXTR test with load and 33-bit mask (PR43381 / D67875)
Branches
Unknown
Tags
Unknown