summaryrefslogtreecommitdiffhomepage
path: root/ir/ana
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-10-18 11:45:38 +0200
committerMatthias Braun <matze@braunis.de>2015-10-18 11:45:38 +0200
commit9b02a9db4b918caaab631ab1784f6aef222da7c3 (patch)
tree015aea54c0bb3b88fd528771b3494c7c3e6290f7 /ir/ana
parentd013e55796cb01d63f92a6866e9e956466aec462 (diff)
tv: Remove mode parameter from tarval_sub
We can get a proper mode for pointer-pointer from get_reference_offset_mode().
Diffstat (limited to 'ir/ana')
-rw-r--r--ir/ana/constbits.c16
-rw-r--r--ir/ana/dca.c8
-rw-r--r--ir/ana/vrp.c4
3 files changed, 14 insertions, 14 deletions
diff --git a/ir/ana/constbits.c b/ir/ana/constbits.c
index 1e5d2bc..5052676 100644
--- a/ir/ana/constbits.c
+++ b/ir/ana/constbits.c
@@ -378,8 +378,8 @@ undefined:
const long modulo_shift = get_mode_modulo_shift(m);
ir_mode *const rmode = get_irn_mode(right);
ir_tarval *const rone = get_mode_one(rmode);
- ir_tarval *const size_mask = tarval_sub(new_tarval_from_long(size_bits, rmode), rone, NULL);
- ir_tarval *const modulo_mask = tarval_sub(new_tarval_from_long(modulo_shift, rmode), rone, NULL);
+ ir_tarval *const size_mask = tarval_sub(new_tarval_from_long(size_bits, rmode), rone);
+ ir_tarval *const modulo_mask = tarval_sub(new_tarval_from_long(modulo_shift, rmode), rone);
ir_tarval *const zero = get_mode_null(m);
ir_tarval *const all_one = get_mode_all_one(m);
ir_tarval *const oversize_mask = tarval_andnot(modulo_mask, size_mask);
@@ -422,8 +422,8 @@ undefined:
const long modulo_shift = get_mode_modulo_shift(m);
ir_mode *const rmode = get_irn_mode(right);
ir_tarval *const rone = get_mode_one(rmode);
- ir_tarval *const size_mask = tarval_sub(new_tarval_from_long(size_bits, rmode), rone, NULL);
- ir_tarval *const modulo_mask = tarval_sub(new_tarval_from_long(modulo_shift, rmode), rone, NULL);
+ ir_tarval *const size_mask = tarval_sub(new_tarval_from_long(size_bits, rmode), rone);
+ ir_tarval *const modulo_mask = tarval_sub(new_tarval_from_long(modulo_shift, rmode), rone);
ir_tarval *const zero = get_mode_null(m);
ir_tarval *const all_one = get_mode_all_one(m);
ir_tarval *const oversize_mask = tarval_andnot(modulo_mask, size_mask);
@@ -466,8 +466,8 @@ undefined:
const long modulo_shift = get_mode_modulo_shift(m);
ir_mode *const rmode = get_irn_mode(right);
ir_tarval *const rone = get_mode_one(rmode);
- ir_tarval *const size_mask = tarval_sub(new_tarval_from_long(size_bits, rmode), rone, NULL);
- ir_tarval *const modulo_mask = tarval_sub(new_tarval_from_long(modulo_shift, rmode), rone, NULL);
+ ir_tarval *const size_mask = tarval_sub(new_tarval_from_long(size_bits, rmode), rone);
+ ir_tarval *const modulo_mask = tarval_sub(new_tarval_from_long(modulo_shift, rmode), rone);
ir_tarval *const zero = get_mode_null(m);
ir_tarval *const all_one = get_mode_all_one(m);
ir_tarval *const oversize_mask = tarval_andnot(modulo_mask, size_mask);
@@ -523,8 +523,8 @@ undefined:
ir_tarval *const lo = l->o;
ir_tarval *const rz = r->z;
ir_tarval *const ro = r->o;
- ir_tarval *const vz = tarval_sub(lo, rz, m);
- ir_tarval *const vo = tarval_sub(lz, ro, m);
+ ir_tarval *const vz = tarval_sub(lo, rz);
+ ir_tarval *const vo = tarval_sub(lz, ro);
ir_tarval *const lnc = tarval_eor(lz, lo);
ir_tarval *const rnc = tarval_eor(rz, ro);
ir_tarval *const vnc = tarval_eor(vz, vo);
diff --git a/ir/ana/dca.c b/ir/ana/dca.c
index 608fee0..d0a5ba6 100644
--- a/ir/ana/dca.c
+++ b/ir/ana/dca.c
@@ -287,8 +287,8 @@ static void dca_transfer(ir_node *irn)
const long modulo_shift = get_mode_modulo_shift(mode);
ir_mode *const rmode = get_irn_mode(right);
ir_tarval *const rone = get_mode_one(rmode);
- ir_tarval *const size_mask = tarval_sub(new_tarval_from_long(size_bits, rmode), rone, NULL);
- ir_tarval *const modulo_mask = tarval_sub(new_tarval_from_long(modulo_shift, rmode), rone, NULL);
+ ir_tarval *const size_mask = tarval_sub(new_tarval_from_long(size_bits, rmode), rone);
+ ir_tarval *const modulo_mask = tarval_sub(new_tarval_from_long(modulo_shift, rmode), rone);
ir_tarval *const oversize_mask = tarval_andnot(modulo_mask, size_mask);
ir_tarval *const ro = br->o;
ir_tarval *const rz = br->z;
@@ -337,8 +337,8 @@ static void dca_transfer(ir_node *irn)
const long modulo_shift = get_mode_modulo_shift(mode);
ir_mode *const rmode = get_irn_mode(right);
ir_tarval *const rone = get_mode_one(rmode);
- ir_tarval *const size_mask = tarval_sub(new_tarval_from_long(size_bits, rmode), rone, NULL);
- ir_tarval *const modulo_mask = tarval_sub(new_tarval_from_long(modulo_shift, rmode), rone, NULL);
+ ir_tarval *const size_mask = tarval_sub(new_tarval_from_long(size_bits, rmode), rone);
+ ir_tarval *const modulo_mask = tarval_sub(new_tarval_from_long(modulo_shift, rmode), rone);
ir_tarval *const oversize_mask = tarval_andnot(modulo_mask, size_mask);
ir_tarval *const ro = br->o;
ir_tarval *const rz = br->z;
diff --git a/ir/ana/vrp.c b/ir/ana/vrp.c
index 528fccc..3a1ef6b 100644
--- a/ir/ana/vrp.c
+++ b/ir/ana/vrp.c
@@ -152,8 +152,8 @@ static int vrp_update_node(ir_vrp_info *info, ir_node *node)
&& vrp_right->range_type == VRP_RANGE) {
int old_wrap_on_overflow = tarval_get_wrap_on_overflow();
tarval_set_wrap_on_overflow(false);
- ir_tarval *new_top = tarval_sub(vrp_left->range_top, vrp_right->range_bottom, NULL);
- ir_tarval *new_bottom = tarval_sub(vrp_left->range_bottom, vrp_right->range_top, NULL);
+ ir_tarval *new_top = tarval_sub(vrp_left->range_top, vrp_right->range_bottom);
+ ir_tarval *new_bottom = tarval_sub(vrp_left->range_bottom, vrp_right->range_top);
tarval_set_wrap_on_overflow(old_wrap_on_overflow);
if (new_top != tarval_bad && new_bottom != tarval_bad) {