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
a37aba10
Commit
a37aba10
authored
May 06, 2019
by
Li Jia He
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
This reverts commit r270894, as new testcase fails on arm and aarch64, I am sorry for this.
From-SVN: r270910
parent
3bc104bd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
45 deletions
+4
-45
gcc/ChangeLog
+0
-5
gcc/testsuite/ChangeLog
+0
-6
gcc/testsuite/gcc.dg/tree-ssa/pr37508.c
+3
-3
gcc/testsuite/gcc.dg/tree-ssa/pr88676-2.c
+0
-30
gcc/tree-ssa-phiopt.c
+1
-1
No files found.
gcc/ChangeLog
View file @
a37aba10
...
...
@@ -67,11 +67,6 @@
and macros.
* config/i386/t-i386: Define dependencies for new files.
2019-05-06 Li Jia He <helijia@linux.ibm.com>
* tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
detection.
2019-05-03 Richard Earnshaw <rearnsha@arm.com>
PR target/89400
...
...
gcc/testsuite/ChangeLog
View file @
a37aba10
...
...
@@ -21,12 +21,6 @@
systems.
* gcc.dg/tsan/pr88017.c: Likewise.
2019-05-06 Li Jia He <helijia@linux.ibm.com>
* gcc.dg/tree-ssa/pr37508.c: Add the no-ssa-phiopt option to skip phi
optimization.
* gcc.dg/tree-ssa/pr88676-2.c: New testcase.
2019-05-05 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/90344
...
...
gcc/testsuite/gcc.dg/tree-ssa/pr37508.c
View file @
a37aba10
/* { dg-do compile } */
/* { dg-options "-O2 -fno-
ssa-phiopt -fno-
tree-fre -fdump-tree-vrp1" } */
/* { dg-options "-O2 -fno-tree-fre -fdump-tree-vrp1" } */
struct
foo1
{
int
i
:
1
;
...
...
@@ -22,7 +22,7 @@ int test2 (struct foo2 *x)
{
if
(
x
->
i
==
0
)
return
1
;
else
if
(
x
->
i
==
-
1
)
/* This test is already
optimized by ccp1 or phiopt
1. */
else
if
(
x
->
i
==
-
1
)
/* This test is already
folded to false by ccp
1. */
return
1
;
return
0
;
}
...
...
@@ -31,7 +31,7 @@ int test3 (struct foo1 *x)
{
if
(
x
->
i
==
0
)
return
1
;
else
if
(
x
->
i
==
1
)
/* This test is already
optimized by ccp1 or phiopt1
. */
else
if
(
x
->
i
==
1
)
/* This test is already
folded to false by fold
. */
return
1
;
return
0
;
}
...
...
gcc/testsuite/gcc.dg/tree-ssa/pr88676-2.c
deleted
100644 → 0
View file @
3bc104bd
/* PR tree-optimization/88676 */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-phiopt1" } */
/* { dg-final { scan-tree-dump-not " = PHI <" "optimized" } } */
struct
foo1
{
int
i
:
1
;
};
struct
foo2
{
unsigned
i
:
1
;
};
int
test1
(
struct
foo1
*
x
)
{
if
(
x
->
i
==
0
)
return
1
;
else
if
(
x
->
i
==
1
)
return
1
;
return
0
;
}
int
test2
(
struct
foo2
*
x
)
{
if
(
x
->
i
==
0
)
return
1
;
else
if
(
x
->
i
==
-
1
)
return
1
;
return
0
;
}
gcc/tree-ssa-phiopt.c
View file @
a37aba10
...
...
@@ -602,7 +602,7 @@ two_value_replacement (basic_block cond_bb, basic_block middle_bb,
||
TREE_CODE
(
arg1
)
!=
INTEGER_CST
||
(
tree_int_cst_lt
(
arg0
,
arg1
)
?
wi
::
to_widest
(
arg0
)
+
1
!=
wi
::
to_widest
(
arg1
)
:
wi
::
to_widest
(
arg1
)
+
1
!=
wi
::
to_widest
(
arg
0
)))
:
wi
::
to_widest
(
arg1
)
+
1
!=
wi
::
to_widest
(
arg
1
)))
return
false
;
if
(
!
empty_block_p
(
middle_bb
))
...
...
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