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
19849d15
Commit
19849d15
authored
Oct 07, 2019
by
Aldy Hernandez
Committed by
Aldy Hernandez
Oct 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
From-SVN: r276655
parent
523fe5b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
gcc/ChangeLog
+4
-0
gcc/ipa-prop.c
+1
-0
No files found.
gcc/ChangeLog
View file @
19849d15
2019-10-07 Aldy Hernandez <aldyh@redhat.com>
* ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
2019-10-07 Aldy Hernandez <aldyh@redhat.com>
* ipa-prop.c (ipa_vr::nonzero_p): New.
(ipcp_update_vr): Use nonzero_p instead of open-coding check for
non-zero range.
...
...
gcc/ipa-prop.c
View file @
19849d15
...
...
@@ -5117,6 +5117,7 @@ ipa_vr::nonzero_p (tree expr_type) const
unsigned
prec
=
TYPE_PRECISION
(
expr_type
);
return
(
type
==
VR_RANGE
&&
TYPE_UNSIGNED
(
expr_type
)
&&
wi
::
eq_p
(
min
,
wi
::
one
(
prec
))
&&
wi
::
eq_p
(
max
,
wi
::
max_value
(
prec
,
TYPE_SIGN
(
expr_type
))));
}
...
...
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