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

Unified Diff: tests_lit/llvm2ice_tests/select-opt.ll

Issue 1141213004: Subzero: Fold icmp into br/select lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Remove unnecessary break statement Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« src/IceTargetLoweringX8632.h ('K') | « tests_lit/llvm2ice_tests/bool-folding.ll ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/llvm2ice_tests/select-opt.ll
diff --git a/tests_lit/llvm2ice_tests/select-opt.ll b/tests_lit/llvm2ice_tests/select-opt.ll
index 8e67a6d5f74146e6254d1ea5f4951d5043672338..f6d15bf6d9554177e48248e79bc3eb3e741f0306 100644
--- a/tests_lit/llvm2ice_tests/select-opt.ll
+++ b/tests_lit/llvm2ice_tests/select-opt.ll
@@ -14,6 +14,11 @@ entry:
%cmp1 = icmp sgt i32 %a, %b
%cond2 = select i1 %cmp1, i32 10, i32 20
tail call void @useInt(i32 %cond2)
+ ; Create "fake" uses of %cmp and %cmp1 to prevent O2 bool folding.
+ %d1 = zext i1 %cmp to i32
+ call void @useInt(i32 %d1)
+ %d2 = zext i1 %cmp1 to i32
+ call void @useInt(i32 %d2)
ret void
}
« src/IceTargetLoweringX8632.h ('K') | « tests_lit/llvm2ice_tests/bool-folding.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698