aboutsummaryrefslogtreecommitdiff
path: root/gcc/cse.c
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>2000-02-26 02:50:12 +0000
committerJeff Law <law@gcc.gnu.org>2000-02-25 19:50:12 -0700
commit602c4c0d717ba1da5a12039c04d99fa6b2c959b2 (patch)
tree3d3e0fcad47861b0973811f3329a35e6b4a0e70d /gcc/cse.c
parent4a92092ae6a0d60d571fa7a73bc05aee4ef31107 (diff)
downloadgcc-602c4c0d717ba1da5a12039c04d99fa6b2c959b2.zip
gcc-602c4c0d717ba1da5a12039c04d99fa6b2c959b2.tar.gz
gcc-602c4c0d717ba1da5a12039c04d99fa6b2c959b2.tar.bz2
cse.c (cse_insn): Replace the PATTERN of the insn with an new jump when...
* cse.c (cse_insn): Replace the PATTERN of the insn with an new jump when changing a computed jump into a jump to a known target. From-SVN: r32160
Diffstat (limited to 'gcc/cse.c')
-rw-r--r--gcc/cse.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/cse.c b/gcc/cse.c
index 822986f..b162c5e 100644
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -5214,11 +5214,8 @@ cse_insn (insn, libcall_insn)
break;
}
- /* We must actually validate the change. Consider a target
- where unconditional jumps are more complex than
- (set (pc) (label_ref)) such as the fr30. */
- if (validate_change (insn, &SET_SRC (sets[i].rtl), trial, 0))
- cse_jumps_altered = 1;
+ PATTERN (insn) = gen_jump (trial);
+ cse_jumps_altered = 1;
break;
}