HomePhabricator

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

Authored by craig.topper on Sun, Sep 22, 12:49 PM.

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.

llvm-svn: 372525

Details

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