Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
2b13f5a6
Commit
2b13f5a6
authored
Nov 05, 2019
by
Aldy Hernandez
Committed by
Aldy Hernandez
Nov 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move vrp_bitmap_equal_p above its only use and make it static.
From-SVN: r277813
parent
e65deaff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
14 deletions
+18
-14
gcc/ChangeLog
+6
-0
gcc/tree-vrp.c
+12
-12
gcc/tree-vrp.h
+0
-2
No files found.
gcc/ChangeLog
View file @
2b13f5a6
2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2019-11-05 Aldy Hernandez <aldyh@redhat.com>
* tree-vrp.h (vrp_bitmap_equal_p): Remove.
* tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
static.
2019-11-05 Aldy Hernandez <aldyh@redhat.com>
* tree-vrp.c (value_range_base::operator==): Use equal_p to
* tree-vrp.c (value_range_base::operator==): Use equal_p to
properly handle symbolics.
properly handle symbolics.
(range_compatible_p): Remove.
(range_compatible_p): Remove.
gcc/tree-vrp.c
View file @
2b13f5a6
...
@@ -254,6 +254,18 @@ value_range_base::equal_p (const value_range_base &other) const
...
@@ -254,6 +254,18 @@ value_range_base::equal_p (const value_range_base &other) const
&&
vrp_operand_equal_p
(
m_max
,
other
.
m_max
));
&&
vrp_operand_equal_p
(
m_max
,
other
.
m_max
));
}
}
/* Return true if the bitmaps B1 and B2 are equal. */
static
bool
vrp_bitmap_equal_p
(
const_bitmap
b1
,
const_bitmap
b2
)
{
return
(
b1
==
b2
||
((
!
b1
||
bitmap_empty_p
(
b1
))
&&
(
!
b2
||
bitmap_empty_p
(
b2
)))
||
(
b1
&&
b2
&&
bitmap_equal_p
(
b1
,
b2
)));
}
/* Returns TRUE if THIS == OTHER. Ignores the equivalence bitmap if
/* Returns TRUE if THIS == OTHER. Ignores the equivalence bitmap if
IGNORE_EQUIVS is TRUE. */
IGNORE_EQUIVS is TRUE. */
...
@@ -910,18 +922,6 @@ vrp_operand_equal_p (const_tree val1, const_tree val2)
...
@@ -910,18 +922,6 @@ vrp_operand_equal_p (const_tree val1, const_tree val2)
return
true
;
return
true
;
}
}
/* Return true, if the bitmaps B1 and B2 are equal. */
bool
vrp_bitmap_equal_p
(
const_bitmap
b1
,
const_bitmap
b2
)
{
return
(
b1
==
b2
||
((
!
b1
||
bitmap_empty_p
(
b1
))
&&
(
!
b2
||
bitmap_empty_p
(
b2
)))
||
(
b1
&&
b2
&&
bitmap_equal_p
(
b1
,
b2
)));
}
static
bool
static
bool
range_has_numeric_bounds_p
(
const
value_range_base
*
vr
)
range_has_numeric_bounds_p
(
const
value_range_base
*
vr
)
{
{
...
...
gcc/tree-vrp.h
View file @
2b13f5a6
...
@@ -279,8 +279,6 @@ extern void register_edge_assert_for (tree, edge, enum tree_code,
...
@@ -279,8 +279,6 @@ extern void register_edge_assert_for (tree, edge, enum tree_code,
extern
bool
stmt_interesting_for_vrp
(
gimple
*
);
extern
bool
stmt_interesting_for_vrp
(
gimple
*
);
extern
bool
infer_value_range
(
gimple
*
,
tree
,
tree_code
*
,
tree
*
);
extern
bool
infer_value_range
(
gimple
*
,
tree
,
tree_code
*
,
tree
*
);
extern
bool
vrp_bitmap_equal_p
(
const_bitmap
,
const_bitmap
);
extern
bool
range_int_cst_p
(
const
value_range_base
*
);
extern
bool
range_int_cst_p
(
const
value_range_base
*
);
extern
int
compare_values
(
tree
,
tree
);
extern
int
compare_values
(
tree
,
tree
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment