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
e6a125a0
Commit
e6a125a0
authored
Jul 14, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(cse_insn): Ifdef out code that pre-truncates src_folded.
From-SVN: r10127
parent
b7d9c418
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
gcc/cse.c
+8
-0
No files found.
gcc/cse.c
View file @
e6a125a0
...
@@ -6317,6 +6317,13 @@ cse_insn (insn, in_libcall_block)
...
@@ -6317,6 +6317,13 @@ cse_insn (insn, in_libcall_block)
simplified result, which may not necessarily be valid. */
simplified result, which may not necessarily be valid. */
src_folded
=
fold_rtx
(
src
,
insn
);
src_folded
=
fold_rtx
(
src
,
insn
);
#if 0
/* ??? This caused bad code to be generated for the m68k port with -O2.
Suppose src is (CONST_INT -1), and that after truncation src_folded
is (CONST_INT 3). Suppose src_folded is then used for src_const.
At the end we will add src and src_const to the same equivalence
class. We now have 3 and -1 on the same equivalence class. This
causes later instructions to be mis-optimized. */
/* If storing a constant in a bitfield, pre-truncate the constant
/* If storing a constant in a bitfield, pre-truncate the constant
so we will be able to record it later. */
so we will be able to record it later. */
if (GET_CODE (SET_DEST (sets[i].rtl)) == ZERO_EXTRACT
if (GET_CODE (SET_DEST (sets[i].rtl)) == ZERO_EXTRACT
...
@@ -6332,6 +6339,7 @@ cse_insn (insn, in_libcall_block)
...
@@ -6332,6 +6339,7 @@ cse_insn (insn, in_libcall_block)
= GEN_INT (INTVAL (src) & (((HOST_WIDE_INT) 1
= GEN_INT (INTVAL (src) & (((HOST_WIDE_INT) 1
<< INTVAL (width)) - 1));
<< INTVAL (width)) - 1));
}
}
#endif
/* Compute SRC's hash code, and also notice if it
/* Compute SRC's hash code, and also notice if it
should not be recorded at all. In that case,
should not be recorded at all. In that case,
...
...
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