diff options
| author | Clement Courbet <courbet@google.com> | 2018-02-07 09:58:55 +0000 |
|---|---|---|
| committer | Clement Courbet <courbet@google.com> | 2018-02-07 09:58:55 +0000 |
| commit | 10003e31f47cb8a542e3d13b0fb5f56902e38854 (patch) | |
| tree | c7238b4085dfb5d6700cf951c4774399d829ef30 /llvm/test/CodeGen/PowerPC/memcmp-mergeexpand.ll | |
| parent | 308c92b25d95049fb8ab846ea23b7100ed8660d2 (diff) | |
| download | bcm5719-llvm-10003e31f47cb8a542e3d13b0fb5f56902e38854.tar.gz bcm5719-llvm-10003e31f47cb8a542e3d13b0fb5f56902e38854.zip | |
[MergeICmps] Re-commit rL324317 "Enable the MergeICmps Pass by default."
With fixes from rL324341.
Original commit message:
[MergeICmps] Enable the MergeICmps Pass by default.
Summary: Now that PR33325 is fixed, this should always improve the generated code.
Reviewers: spatel
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D42793
llvm-svn: 324465
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/memcmp-mergeexpand.ll')
| -rw-r--r-- | llvm/test/CodeGen/PowerPC/memcmp-mergeexpand.ll | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/llvm/test/CodeGen/PowerPC/memcmp-mergeexpand.ll b/llvm/test/CodeGen/PowerPC/memcmp-mergeexpand.ll index c87abbfa7be..83b1cd505db 100644 --- a/llvm/test/CodeGen/PowerPC/memcmp-mergeexpand.ll +++ b/llvm/test/CodeGen/PowerPC/memcmp-mergeexpand.ll @@ -7,22 +7,12 @@ define zeroext i1 @opeq1( ; PPC64LE-LABEL: opeq1: -; PPC64LE: # %bb.0: # %entry -; PPC64LE-NEXT: lwz 5, 0(3) -; PPC64LE-NEXT: lwz 6, 0(4) -; PPC64LE-NEXT: cmplw 5, 6 -; PPC64LE-NEXT: bne 0, .LBB0_2 -; PPC64LE-NEXT: # %bb.1: # %land.rhs.i -; PPC64LE-NEXT: lwz 3, 4(3) -; PPC64LE-NEXT: lwz 4, 4(4) -; PPC64LE-NEXT: cmpw 3, 4 -; PPC64LE-NEXT: b .LBB0_3 -; PPC64LE-NEXT: .LBB0_2: -; PPC64LE-NEXT: crxor 2, 2, 2 -; PPC64LE-NEXT: .LBB0_3: # %opeq1.exit -; PPC64LE-NEXT: li 3, 0 -; PPC64LE-NEXT: li 4, 1 -; PPC64LE-NEXT: isel 3, 4, 3, 2 +; PPC64LE: # %bb.0: # %opeq1.exit +; PPC64LE-NEXT: ld 3, 0(3) +; PPC64LE-NEXT: ld 4, 0(4) +; PPC64LE-NEXT: xor 3, 3, 4 +; PPC64LE-NEXT: cntlzd 3, 3 +; PPC64LE-NEXT: rldicl 3, 3, 58, 63 ; PPC64LE-NEXT: blr %"struct.std::pair"* nocapture readonly dereferenceable(8) %a, %"struct.std::pair"* nocapture readonly dereferenceable(8) %b) local_unnamed_addr #0 { |

