diff options
| author | Richard Guenther <rguenther@suse.de> | 2011-08-18 12:42:22 +0000 | 
|---|---|---|
| committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-08-18 12:42:22 +0000 | 
| commit | 6b8045e1bb221bff9ca107b3bd9109b9de044bc1 (patch) | |
| tree | 67722dd90363343ba8f112a4246a54e507e3688c /gcc/tree-ssa-loop-ivopts.c | |
| parent | 68f932c4432b9b806d58781aa56ad7b3ba5e82f9 (diff) | |
| download | gcc-6b8045e1bb221bff9ca107b3bd9109b9de044bc1.zip gcc-6b8045e1bb221bff9ca107b3bd9109b9de044bc1.tar.gz gcc-6b8045e1bb221bff9ca107b3bd9109b9de044bc1.tar.bz2 | |
tree.h (tree_int_cst_msb): Remove.
2011-08-18  Richard Guenther  <rguenther@suse.de>
	* tree.h (tree_int_cst_msb): Remove.
	* tree.c (tree_int_cst_msb): Likewise.
	(tree_int_cst_sign_bit): Move from ...
	* tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
From-SVN: r177853
Diffstat (limited to 'gcc/tree-ssa-loop-ivopts.c')
| -rw-r--r-- | gcc/tree-ssa-loop-ivopts.c | 20 | 
1 files changed, 0 insertions, 20 deletions
| diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index c939827..0efa716 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -2892,26 +2892,6 @@ var_at_stmt (struct loop *loop, struct iv_cand *cand, gimple stmt)      return cand->var_before;  } -/* Return the most significant (sign) bit of T.  Similar to tree_int_cst_msb, -   but the bit is determined from TYPE_PRECISION, not MODE_BITSIZE.  */ - -int -tree_int_cst_sign_bit (const_tree t) -{ -  unsigned bitno = TYPE_PRECISION (TREE_TYPE (t)) - 1; -  unsigned HOST_WIDE_INT w; - -  if (bitno < HOST_BITS_PER_WIDE_INT) -    w = TREE_INT_CST_LOW (t); -  else -    { -      w = TREE_INT_CST_HIGH (t); -      bitno -= HOST_BITS_PER_WIDE_INT; -    } - -  return (w >> bitno) & 1; -} -  /* If A is (TYPE) BA and B is (TYPE) BB, and the types of BA and BB have the     same precision that is at least as wide as the precision of TYPE, stores     BA to A and BB to B, and returns the type of BA.  Otherwise, returns the | 
