]> granicus.if.org Git - llvm/commit
[X86] Merge the different SETcc instructions for each condition code into single...
authorCraig Topper <craig.topper@intel.com>
Fri, 5 Apr 2019 19:27:49 +0000 (19:27 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 5 Apr 2019 19:27:49 +0000 (19:27 +0000)
commitd8286e45afd6b6a8d34f3002f884b00e64406857
tree86ee4751703c12da80580d1eb9da7b2f6afa6d54
parentd8490747ade4067a4bcfcf45ee95d8265c975394
[X86] Merge the different SETcc instructions for each condition code into single instructions that store the condition code as an operand.

Summary:
This avoids needing an isel pattern for each condition code. And it removes translation switches for converting between SETcc instructions and condition codes.

Now the printer, encoder and disassembler take care of converting the immediate. We use InstAliases to handle the assembly matching. But we print using the asm string in the instruction definition. The instruction itself is marked IsCodeGenOnly=1 to hide it from the assembly parser.

Reviewers: andreadb, courbet, RKSimon, spatel, lebedev.ri

Reviewed By: andreadb

Subscribers: hiraditya, lebedev.ri, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D60138

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357801 91177308-0d34-0410-b5e6-96231b3b80d8
29 files changed:
lib/Target/X86/MCTargetDesc/X86BaseInfo.h
lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
lib/Target/X86/X86FastISel.cpp
lib/Target/X86/X86FixupSetCC.cpp
lib/Target/X86/X86FlagsCopyLowering.cpp
lib/Target/X86/X86ISelDAGToDAG.cpp
lib/Target/X86/X86InstrCMovSetCC.td
lib/Target/X86/X86InstrCompiler.td
lib/Target/X86/X86InstrFoldTables.cpp
lib/Target/X86/X86InstrFormats.td
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86InstrInfo.h
lib/Target/X86/X86InstructionSelector.cpp
lib/Target/X86/X86SchedBroadwell.td
lib/Target/X86/X86SchedHaswell.td
lib/Target/X86/X86SchedPredicates.td
lib/Target/X86/X86SchedSandyBridge.td
lib/Target/X86/X86SchedSkylakeClient.td
lib/Target/X86/X86SchedSkylakeServer.td
lib/Target/X86/X86ScheduleBdVer2.td
test/CodeGen/X86/GlobalISel/select-cmp.mir
test/CodeGen/X86/GlobalISel/select-phi.mir
test/CodeGen/X86/GlobalISel/x86_64-select-fcmp.mir
test/CodeGen/X86/flags-copy-lowering.mir
test/CodeGen/X86/pr27681.mir
test/CodeGen/X86/stack-folding-adx.mir
tools/llvm-exegesis/lib/X86/Target.cpp
utils/TableGen/X86RecognizableInstr.cpp
utils/TableGen/X86RecognizableInstr.h