[PATCH] D101993: [SystemZ] Don't use libcall for 128 bit shifts
Jonas Paulsson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 6 06:31:10 PDT 2021
jonpa created this revision.
jonpa added a reviewer: uweigand.
Herald added a subscriber: hiraditya.
jonpa requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Expand 128 bit shifts instead of using a libcall.
This patch removes the 128 bit shiftlibcalls and thereby causes ExpandShiftWithUnknownAmountBit() to be called.
Some other targets choose to set ISD::SHL_PARTS to 'custom' and then do this expansion in lowerOperation(). That is probably the alternative if the code output needs to be improved (I see 3 LOCs where GCC use 2 in c-code example...).
https://reviews.llvm.org/D101993
Files:
llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
llvm/test/CodeGen/SystemZ/shift-12.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101993.343388.patch
Type: text/x-patch
Size: 5077 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210506/fd949f67/attachment.bin>
More information about the llvm-commits
mailing list