[X86] Split imm handling out of selectMOV64Imm32 and add a separate isel pattern.
authorCraig Topper <craig.topper@gmail.com>
Wed, 10 Jun 2020 17:36:45 +0000 (10:36 -0700)
committerCraig Topper <craig.topper@gmail.com>
Wed, 10 Jun 2020 18:12:36 +0000 (11:12 -0700)
commit324e13668e561c83c53cd08b78b66e2f83146a7b
tree42fe8c3525a41f854250ebab44e0c367c44e9772
parentc76a1d0fc0c148c8642397a6ec8a589256eb1dc2
[X86] Split imm handling out of selectMOV64Imm32 and add a separate isel pattern.

This makes the pattern available to global isel.
llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
llvm/lib/Target/X86/X86InstrCompiler.td
llvm/test/CodeGen/X86/GlobalISel/constant.ll
llvm/test/CodeGen/X86/GlobalISel/ptr-add.ll
llvm/test/CodeGen/X86/GlobalISel/select-constant.mir
llvm/test/CodeGen/X86/GlobalISel/select-ptr-add.mir