[PATCH] D75553: [ARM] Constant long shift combines

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 3 11:57:45 PST 2020


dmgreen created this revision.
dmgreen added reviewers: simon_tatham, SjoerdMeijer, samparker, ostannard, efriedma.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: LLVM.

This changes the way that asrl and lsrl intrinsics are lowered, going via a the ISEL ASRL and LSLL nodes instead of straight to machine nodes. On top of that, it adds some constant folds for long shifts, in case it turns out that the shift amount was either constant or 0.


https://reviews.llvm.org/D75553

Files:
  llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
  llvm/lib/Target/ARM/ARMISelLowering.cpp
  llvm/test/CodeGen/Thumb2/longshift.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75553.247979.patch
Type: text/x-patch
Size: 4774 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200303/175f1371/attachment.bin>


More information about the llvm-commits mailing list