File tree Expand file tree Collapse file tree 2 files changed +21
-8
lines changed
cranelift/codegen/src/opts Expand file tree Collapse file tree 2 files changed +21
-8
lines changed Original file line number Diff line number Diff line change 103103(rule (simplify (select ty d (select ty d x _) a)) (select ty d x a))
104104
105105;; min x y < x => false and its commutative versions
106- (rule (simplify (sgt ty (smin _ x y) x)) (iconst_u ty 0))
107- (rule (simplify (sgt ty (smin _ x y) y)) (iconst_u ty 0))
108- (rule (simplify (slt ty x (smin _ x z))) (iconst_u ty 0))
109- (rule (simplify (slt ty x (smin _ y x))) (iconst_u ty 0))
110- (rule (simplify (ugt ty (umin _ x y) x)) (iconst_u ty 0))
111- (rule (simplify (ugt ty (umin _ x y) y)) (iconst_u ty 0))
112- (rule (simplify (ult ty x (umin _ x z))) (iconst_u ty 0))
113- (rule (simplify (ult ty x (umin _ y x))) (iconst_u ty 0))
106+ (rule (simplify (sgt (fits_in_64 ty) (smin _ x y) x)) (iconst_u ty 0))
107+ (rule (simplify (sgt (fits_in_64 ty) (smin _ x y) y)) (iconst_u ty 0))
108+ (rule (simplify (slt (fits_in_64 ty) x (smin _ x z))) (iconst_u ty 0))
109+ (rule (simplify (slt (fits_in_64 ty) x (smin _ y x))) (iconst_u ty 0))
110+ (rule (simplify (ugt (fits_in_64 ty) (umin _ x y) x)) (iconst_u ty 0))
111+ (rule (simplify (ugt (fits_in_64 ty) (umin _ x y) y)) (iconst_u ty 0))
112+ (rule (simplify (ult (fits_in_64 ty) x (umin _ x z))) (iconst_u ty 0))
113+ (rule (simplify (ult (fits_in_64 ty) x (umin _ y x))) (iconst_u ty 0))
114114
115115
116116
Original file line number Diff line number Diff line change 1+ (module
2+ (func (export " hi" ) (result v128 )
3+ (local $i v128 )
4+ v128.const i64x2 0xfa2675c080000000 0xe8a433230a7479e5
5+ local.set $i
6+ local.get $i
7+ local.get $i
8+ local.get $i
9+ i32x4.min_s
10+ i32x4.lt_s
11+ )
12+
13+ )
You can’t perform that action at this time.
0 commit comments