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
3727f434
Commit
3727f434
authored
Aug 30, 2010
by
Uros Bizjak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Move compare peephole2 to a better place.
From-SVN: r163645
parent
66194a98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
18 deletions
+17
-18
gcc/config/i386/i386.md
+17
-18
No files found.
gcc/config/i386/i386.md
View file @
3727f434
...
@@ -17170,24 +17170,6 @@
...
@@ -17170,24 +17170,6 @@
(set (reg:SI SP_REG) (plus:SI (reg:SI SP_REG) (const_int 4)))])]
(set (reg:SI SP_REG) (plus:SI (reg:SI SP_REG) (const_int 4)))])]
"")
"")
;; Convert compares with 1 to shorter inc/dec operations when CF is not
;; required and register dies. Similarly for 128 to -128.
(define_peephole2
[
(set (match_operand 0 "flags_reg_operand" "")
(match_operator 1 "compare_operator"
[
(match_operand 2 "register_operand" "")
(match_operand 3 "const_int_operand" "")]))]
"(((!TARGET_FUSE_CMP_AND_BRANCH || optimize_insn_for_size_p ())
&& incdec_operand (operands
[
3
]
, GET_MODE (operands
[
3
]
)))
|| (!TARGET_FUSE_CMP_AND_BRANCH
&& INTVAL (operands
[
3
]
) == 128))
&& ix86_match_ccmode (insn, CCGCmode)
&& peep2_reg_dead_p (1, operands
[
2
]
)"
[
(parallel
[
(set (match_dup 0)
(match_op_dup 1
[
(match_dup 2) (match_dup 3)
]
))
(clobber (match_dup 2))])]
"")
(define_peephole2
(define_peephole2
[
(match_scratch:DI 0 "r")
[
(match_scratch:DI 0 "r")
(parallel
[
(set (reg:DI SP_REG) (plus:DI (reg:DI SP_REG) (const_int -8)))
(parallel
[
(set (reg:DI SP_REG) (plus:DI (reg:DI SP_REG) (const_int -8)))
...
@@ -17303,6 +17285,23 @@
...
@@ -17303,6 +17285,23 @@
(set (reg:DI SP_REG) (plus:DI (reg:DI SP_REG) (const_int 8)))])]
(set (reg:DI SP_REG) (plus:DI (reg:DI SP_REG) (const_int 8)))])]
"")
"")
;; Convert compares with 1 to shorter inc/dec operations when CF is not
;; required and register dies. Similarly for 128 to -128.
(define_peephole2
[
(set (match_operand 0 "flags_reg_operand" "")
(match_operator 1 "compare_operator"
[
(match_operand 2 "register_operand" "")
(match_operand 3 "const_int_operand" "")]))]
"(((!TARGET_FUSE_CMP_AND_BRANCH || optimize_insn_for_size_p ())
&& incdec_operand (operands
[
3
]
, GET_MODE (operands
[
3
]
)))
|| (!TARGET_FUSE_CMP_AND_BRANCH
&& INTVAL (operands
[
3
]
) == 128))
&& ix86_match_ccmode (insn, CCGCmode)
&& peep2_reg_dead_p (1, operands
[
2
]
)"
[
(parallel
[
(set (match_dup 0)
(match_op_dup 1
[
(match_dup 2) (match_dup 3)
]
))
(clobber (match_dup 2))])])
;; Convert imul by three, five and nine into lea
;; Convert imul by three, five and nine into lea
(define_peephole2
(define_peephole2
[
(parallel
[
(parallel
...
...
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