diff options
author | Zijiao Ma <jojo.ma@linaro.org> | 2016-12-23 02:56:07 +0000 |
---|---|---|
committer | Zijiao Ma <jojo.ma@linaro.org> | 2016-12-23 02:56:07 +0000 |
commit | e365f8338a7602d3836b53808774391bff31c95f (patch) | |
tree | ec65948e619842892bf4b2994bd1c49be7aa2bfa /test/CodeGen/Thumb2 | |
parent | 5e43d26bad1cf3124ce19bbd31d4f86d8efbc97d (diff) |
Make the canonicalisation on shifts benifit to more case.
1.Fix pessimized case in FIXME.
2.Add tests for it.
3.The canonicalisation on shifts results in different sequence for
tests of machine-licm.Correct some check lines.
Differential Revision: https://reviews.llvm.org/D27916
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290410 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb2')
-rw-r--r-- | test/CodeGen/Thumb2/machine-licm.ll | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/CodeGen/Thumb2/machine-licm.ll b/test/CodeGen/Thumb2/machine-licm.ll index c57274ea559..1f638751345 100644 --- a/test/CodeGen/Thumb2/machine-licm.ll +++ b/test/CodeGen/Thumb2/machine-licm.ll @@ -85,10 +85,9 @@ define zeroext i16 @t3(i8 zeroext %data, i16 zeroext %crc) nounwind readnone { ; CHECK-LABEL: t3: bb.nph: ; CHECK: bb.nph -; CHECK: movw {{(r[0-9])|(lr)}}, #32768 +; CHECK: movw {{(r[0-9]+)|(lr)}}, #32768 ; CHECK: movs {{(r[0-9]+)|(lr)}}, #0 ; CHECK: movw [[REGISTER:(r[0-9]+)|(lr)]], #16386 -; CHECK: movw {{(r[0-9]+)|(lr)}}, #65534 ; CHECK: movt {{(r[0-9]+)|(lr)}}, #65535 br label %bb @@ -97,7 +96,6 @@ bb: ; preds = %bb, %bb.nph ; CHECK: eor.w ; CHECK: eorne.w {{(r[0-9])|(lr)}}, {{(r[0-9])|(lr)}}, [[REGISTER]] ; CHECK-NOT: eor -; CHECK: and %data_addr.013 = phi i8 [ %data, %bb.nph ], [ %8, %bb ] ; <i8> [#uses=2] %crc_addr.112 = phi i16 [ %crc, %bb.nph ], [ %crc_addr.2, %bb ] ; <i16> [#uses=3] %i.011 = phi i8 [ 0, %bb.nph ], [ %7, %bb ] ; <i8> [#uses=1] |