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
e65deaff
Commit
e65deaff
authored
Nov 05, 2019
by
Aldy Hernandez
Committed by
Aldy Hernandez
Nov 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use value_range_base::equal_p in value_range_base::operator== so we can handle
symbolics without dying. From-SVN: r277812
parent
5d293105
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
24 deletions
+7
-24
gcc/ChangeLog
+6
-0
gcc/tree-vrp.c
+1
-24
No files found.
gcc/ChangeLog
View file @
e65deaff
2019-11-05 Aldy Hernandez <aldyh@redhat.com>
* tree-vrp.c (value_range_base::operator==): Use equal_p to
properly handle symbolics.
(range_compatible_p): Remove.
2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
* common.opt (-fabi-version): Document =14.
gcc/tree-vrp.c
View file @
e65deaff
...
...
@@ -6319,33 +6319,10 @@ value_range_base::intersect (const value_range_base &r)
dump_flags
|=
TDF_DETAILS
;
}
/* Return TRUE if two types are compatible for range operations. */
static
bool
range_compatible_p
(
tree
t1
,
tree
t2
)
{
if
(
POINTER_TYPE_P
(
t1
)
&&
POINTER_TYPE_P
(
t2
))
return
true
;
return
types_compatible_p
(
t1
,
t2
);
}
bool
value_range_base
::
operator
==
(
const
value_range_base
&
r
)
const
{
if
(
undefined_p
())
return
r
.
undefined_p
();
if
(
num_pairs
()
!=
r
.
num_pairs
()
||
!
range_compatible_p
(
type
(),
r
.
type
()))
return
false
;
for
(
unsigned
p
=
0
;
p
<
num_pairs
();
p
++
)
if
(
wi
::
ne_p
(
lower_bound
(
p
),
r
.
lower_bound
(
p
))
||
wi
::
ne_p
(
upper_bound
(
p
),
r
.
upper_bound
(
p
)))
return
false
;
return
true
;
return
equal_p
(
r
);
}
/* Visit all arguments for PHI node PHI that flow through executable
...
...
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