Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: tests_lit/llvm2ice_tests/local-cse.ll

Issue 2185193002: Enable Local CSE by default (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Address Comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« src/IceClFlags.def ('K') | « src/IceTargetLoweringX86BaseImpl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; Tests local-cse on x8632 and x8664 1 ; Tests local-cse on x8632 and x8664
2 2
3 ; RUN: %p2i -i %s --filetype=obj --disassemble --target x8632 --args \ 3 ; RUN: %p2i -i %s --filetype=obj --disassemble --target x8632 --args \
4 ; RUN: -O2 -enable-experimental | FileCheck --check-prefix=X8632 \ 4 ; RUN: -O2 | FileCheck --check-prefix=X8632 \
5 ; RUN: --check-prefix=X8632EXP %s 5 ; RUN: --check-prefix=X8632EXP %s
6 6
7 ; RUN: %p2i -i %s --filetype=obj --disassemble --target x8632 --args \ 7 ; RUN: %p2i -i %s --filetype=obj --disassemble --target x8632 --args \
8 ; RUN: -O2 | FileCheck --check-prefix=X8632 --check-prefix X8632NOEXP %s 8 ; RUN: -O2 -lcse=0| FileCheck --check-prefix=X8632 --check-prefix X8632NOEXP %s
9 9
10 ; RUN: %p2i -i %s --filetype=obj --disassemble --target x8664 --args \ 10 ; RUN: %p2i -i %s --filetype=obj --disassemble --target x8664 --args \
11 ; RUN: -O2 -enable-experimental | FileCheck --check-prefix=X8664 \ 11 ; RUN: -O2 | FileCheck --check-prefix=X8664 \
12 ; RUN: --check-prefix=X8664EXP %s 12 ; RUN: --check-prefix=X8664EXP %s
13 13
14 ; RUN: %p2i -i %s --filetype=obj --disassemble --target x8664 --args \ 14 ; RUN: %p2i -i %s --filetype=obj --disassemble --target x8664 --args \
15 ; RUN: -O2 | FileCheck --check-prefix=X8664 --check-prefix X8664NOEXP %s 15 ; RUN: -O2 -lcse=0| FileCheck --check-prefix=X8664 --check-prefix X8664NOEXP %s
16 16
17 17
18 define internal i32 @local_cse_test(i32 %a, i32 %b) { 18 define internal i32 @local_cse_test(i32 %a, i32 %b) {
19 entry: 19 entry:
20 %add1 = add i32 %b, %a 20 %add1 = add i32 %b, %a
21 %add2 = add i32 %b, %a 21 %add2 = add i32 %b, %a
22 %add3 = add i32 %add1, %add2 22 %add3 = add i32 %add1, %add2
23 ret i32 %add3 23 ret i32 %add3
24 } 24 }
25 25
26 ; X8632: add 26 ; X8632: add
27 ; X8632: add 27 ; X8632: add
28 ; X8632NOEXP: add 28 ; X8632NOEXP: add
29 ; X8632EXP-NOT: add 29 ; X8632EXP-NOT: add
30 ; X8632: ret 30 ; X8632: ret
31 31
32 ; X8664: add 32 ; X8664: add
33 ; X8664: add 33 ; X8664: add
34 ; X8664NOEXP: add 34 ; X8664NOEXP: add
35 ; X8664EXP-NOT: add 35 ; X8664EXP-NOT: add
36 ; X8664: ret 36 ; X8664: ret
OLDNEW
« src/IceClFlags.def ('K') | « src/IceTargetLoweringX86BaseImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698