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
4f73c5dd
Commit
4f73c5dd
authored
Jun 25, 1992
by
Tom Wood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r1283
parent
cc61d0de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
gcc/stmt.c
+12
-7
No files found.
gcc/stmt.c
View file @
4f73c5dd
...
...
@@ -3624,15 +3624,20 @@ expand_end_case (orig_index)
make a sequence of conditional branches instead of a dispatch.
If the switch-index is a constant, do it this way
because we can optimize it. */
else
if
(
TREE_INT_CST_HIGH
(
range
)
!=
0
#ifndef CASE_VALUES_THRESHOLD
#ifdef HAVE_casesi
||
(
HAVE_casesi
?
count
<
4
:
count
<
5
)
#define CASE_VALUES_THRESHOLD (HAVE_casesi ? 4 :
5)
#else
/* If machine does not have a case insn that compares the
bounds, this means extra overhead for dispatch tables
which raises the threshold for using them. */
||
count
<
5
#endif
/* If machine does not have a case insn that compares the
bounds, this means extra overhead for dispatch tables
which raises the threshold for using them. */
#define CASE_VALUES_THRESHOLD 5
#endif
/* HAVE_casesi */
#endif
/* CASE_VALUES_THRESHOLD */
else
if
(
TREE_INT_CST_HIGH
(
range
)
!=
0
||
count
<
CASE_VALUES_THRESHOLD
||
(
unsigned
)
(
TREE_INT_CST_LOW
(
range
))
>
10
*
count
||
TREE_CODE
(
index_expr
)
==
INTEGER_CST
/* These will reduce to a constant. */
...
...
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