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
6e28e516
Commit
6e28e516
authored
Jun 11, 2015
by
Marek Polacek
Committed by
Marek Polacek
Jun 11, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* match.pd: Use single_use throughout.
From-SVN: r224368
parent
06b8f7ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
gcc/ChangeLog
+4
-0
gcc/match.pd
+4
-5
No files found.
gcc/ChangeLog
View file @
6e28e516
2015-06-11 Marek Polacek <polacek@redhat.com>
* match.pd: Use single_use throughout.
2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/arm/arm.c (arm_option_params_internal): When optimising
...
...
gcc/match.pd
View file @
6e28e516
...
...
@@ -301,7 +301,7 @@ along with GCC; see the file COPYING3. If not see
/* x + (x & 1) -> (x + 1) & ~1 */
(simplify
(plus:c @0 (bit_and@2 @0 integer_onep@1))
(if (
TREE_CODE (@2) != SSA_NAME || has_
single_use (@2))
(if (single_use (@2))
(bit_and (plus @0 @1) (bit_not @1))))
/* x & ~(x & y) -> x & ~y */
...
...
@@ -309,7 +309,7 @@ along with GCC; see the file COPYING3. If not see
(for bitop (bit_and bit_ior)
(simplify
(bitop:c @0 (bit_not (bitop:c@2 @0 @1)))
(if (
TREE_CODE (@2) != SSA_NAME || has_
single_use (@2))
(if (single_use (@2))
(bitop @0 (bit_not @1)))))
/* (x | y) & ~x -> y & ~x */
...
...
@@ -449,15 +449,14 @@ along with GCC; see the file COPYING3. If not see
/* (x & ~m) | (y & m) -> ((x ^ y) & m) ^ x */
(simplify
(bit_ior:c (bit_and:c@3 @0 (bit_not @2)) (bit_and:c@4 @1 @2))
(if ((TREE_CODE (@3) != SSA_NAME || has_single_use (@3))
&& (TREE_CODE (@4) != SSA_NAME || has_single_use (@4)))
(if (single_use (@3) && single_use (@4))
(bit_xor (bit_and (bit_xor @0 @1) @2) @0)))
/* Associate (p +p off1) +p off2 as (p +p (off1 + off2)). */
(simplify
(pointer_plus (pointer_plus@2 @0 @1) @3)
(if (
TREE_CODE (@2) != SSA_NAME || has_
single_use (@2))
(if (single_use (@2))
(pointer_plus @0 (plus @1 @3))))
/* Pattern match
...
...
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