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
5eb94e4e
Commit
5eb94e4e
authored
Jul 30, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_return): Don't use jumps for "return x == y" if they are
expensive. From-SVN: r5043
parent
790e9490
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
gcc/stmt.c
+5
-3
No files found.
gcc/stmt.c
View file @
5eb94e4e
/* Expands front end tree to back end RTL for GNU C-Compiler
Copyright (C) 1987, 1988, 1989, 1992 Free Software Foundation, Inc.
Copyright (C) 1987, 1988, 1989, 1992
, 1993
Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -2388,11 +2388,13 @@ expand_return (retval)
because expand_null_return takes care of them, too.
Any reason why not? */
if
(
HAVE_return
&&
cleanup_label
==
0
&&
!
current_function_returns_pcc_struct
)
&&
!
current_function_returns_pcc_struct
&&
BRANCH_COST
<=
1
)
{
/* If this is return x == y; then generate
if (x == y) return 1; else return 0;
if we can do it with explicit return insns. */
if we can do it with explicit return insns and
branches are cheap. */
if
(
retval_rhs
)
switch
(
TREE_CODE
(
retval_rhs
))
{
...
...
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