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
5c246896
Commit
5c246896
authored
Dec 04, 2015
by
Jakub Jelinek
Committed by
Jakub Jelinek
Dec 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree-tailcall.c (find_tail_calls): Ignore GIMPLE_NOPs.
From-SVN: r231282
parent
6b2e46bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
gcc/ChangeLog
+2
-0
gcc/tree-tailcall.c
+4
-2
No files found.
gcc/ChangeLog
View file @
5c246896
2015
-
12
-
04
Jakub
Jelinek
<
jakub
@
redhat
.
com
>
2015
-
12
-
04
Jakub
Jelinek
<
jakub
@
redhat
.
com
>
*
tree
-
tailcall
.
c
(
find_tail_calls
):
Ignore
GIMPLE_NOPs
.
PR
tree
-
optimization
/
68680
PR
tree
-
optimization
/
68680
*
calls
.
c
(
special_function_p
):
Return
ECF_MAY_BE_ALLOCA
for
*
calls
.
c
(
special_function_p
):
Return
ECF_MAY_BE_ALLOCA
for
BUILT_IN_ALLOCA
{,
_WITH_ALIGN
}.
Don
't check for __builtin_alloca
BUILT_IN_ALLOCA
{,
_WITH_ALIGN
}.
Don
't check for __builtin_alloca
gcc/tree-tailcall.c
View file @
5c246896
...
@@ -412,9 +412,10 @@ find_tail_calls (basic_block bb, struct tailcall **ret)
...
@@ -412,9 +412,10 @@ find_tail_calls (basic_block bb, struct tailcall **ret)
{
{
stmt
=
gsi_stmt
(
gsi
);
stmt
=
gsi_stmt
(
gsi
);
/* Ignore labels, returns, clobbers and debug stmts. */
/* Ignore labels, returns,
nops,
clobbers and debug stmts. */
if
(
gimple_code
(
stmt
)
==
GIMPLE_LABEL
if
(
gimple_code
(
stmt
)
==
GIMPLE_LABEL
||
gimple_code
(
stmt
)
==
GIMPLE_RETURN
||
gimple_code
(
stmt
)
==
GIMPLE_RETURN
||
gimple_code
(
stmt
)
==
GIMPLE_NOP
||
gimple_clobber_p
(
stmt
)
||
gimple_clobber_p
(
stmt
)
||
is_gimple_debug
(
stmt
))
||
is_gimple_debug
(
stmt
))
continue
;
continue
;
...
@@ -532,7 +533,8 @@ find_tail_calls (basic_block bb, struct tailcall **ret)
...
@@ -532,7 +533,8 @@ find_tail_calls (basic_block bb, struct tailcall **ret)
stmt
=
gsi_stmt
(
agsi
);
stmt
=
gsi_stmt
(
agsi
);
if
(
gimple_code
(
stmt
)
==
GIMPLE_LABEL
)
if
(
gimple_code
(
stmt
)
==
GIMPLE_LABEL
||
gimple_code
(
stmt
)
==
GIMPLE_NOP
)
continue
;
continue
;
if
(
gimple_code
(
stmt
)
==
GIMPLE_RETURN
)
if
(
gimple_code
(
stmt
)
==
GIMPLE_RETURN
)
...
...
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