OSDN Git Service

[ARM] Prefer lsls+lsrs over lsls+ands or lsrs+ands in Thumb1.
authorEli Friedman <efriedma@codeaurora.org>
Wed, 25 Jul 2018 18:22:22 +0000 (18:22 +0000)
committerEli Friedman <efriedma@codeaurora.org>
Wed, 25 Jul 2018 18:22:22 +0000 (18:22 +0000)
commit999d896788686b8733ee6c976b8996f8d48623a6
tree4889b74243956afede495a5f67a77fcd69b49d37
parentd844c8fc2cb1e0421dc19e61519ee98aa72b7a33
[ARM] Prefer lsls+lsrs over lsls+ands or lsrs+ands in Thumb1.

Saves materializing the immediate for the "ands".

Corresponding patterns exist for lsrs+lsls, but that seems less common
in practice.

Now implemented as a DAGCombine.

Differential Revision: https://reviews.llvm.org/D49585

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337945 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/Thumb/shift-and.ll [new file with mode: 0644]