[llvm] [GlobalIsel][AArch64] more legal icmps (PR #78239)
Thorsten Schütt via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 16 07:36:54 PST 2024
================
@@ -5314,6 +5314,14 @@ LegalizerHelper::moreElementsVector(MachineInstr &MI, unsigned TypeIdx,
Observer.changedInstr(MI);
return Legalized;
}
+ case TargetOpcode::G_ICMP: {
+ Observer.changingInstr(MI);
+ moreElementsVectorSrc(MI, MoreTy, 2);
+ moreElementsVectorSrc(MI, MoreTy, 3);
+ moreElementsVectorDst(MI, MoreTy, 0);
----------------
tschuett wrote:
The `MoreTy` comes from here:
https://github.com/llvm/llvm-project/blob/c1a442462d9d47f86392da7e7019ab218d7a3088/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp#L5155
Properly supporting predicates will take more work.
https://github.com/llvm/llvm-project/pull/78239
More information about the llvm-commits
mailing list