[all-commits] [llvm/llvm-project] 8269fd: [GlobalIsel][X86] Add initial scalar G_MUL/G_SMULH...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Sun Jul 2 04:56:58 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8269fd2db50bf97ae3b6e928365d157314e491c8
https://github.com/llvm/llvm-project/commit/8269fd2db50bf97ae3b6e928365d157314e491c8
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2023-07-02 (Sun, 02 Jul 2023)
Changed paths:
M llvm/lib/Target/X86/X86InstructionSelector.cpp
M llvm/lib/Target/X86/X86LegalizerInfo.cpp
M llvm/test/CodeGen/X86/GlobalISel/legalize-mul-scalar.mir
M llvm/test/CodeGen/X86/GlobalISel/mul-scalar.ll
Log Message:
-----------
[GlobalIsel][X86] Add initial scalar G_MUL/G_SMULH/G_UMULH instruction selection handling
Reuse the existing div/rem selection code to also handle mul/imul to support G_MUL/G_SMULH/G_UMULH, as they have a similar pattern using rDX/rAX for mulh/mul results, plus the AH/AL support for i8 multiplies.
More information about the All-commits
mailing list