diff options
author | Jan Hubicka <jh@suse.cz> | 2000-09-04 12:18:31 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2000-09-04 10:18:31 +0000 |
commit | 25ffb1f653a39c0390d82aac0e30610c6dddb431 (patch) | |
tree | cbff44784b8658bef6c8627385f70b7b04cc27cc /gcc/combine.c | |
parent | e0cb4f36521e971561ddf6e7f33eba495120bae2 (diff) | |
download | gcc-25ffb1f653a39c0390d82aac0e30610c6dddb431.zip gcc-25ffb1f653a39c0390d82aac0e30610c6dddb431.tar.gz gcc-25ffb1f653a39c0390d82aac0e30610c6dddb431.tar.bz2 |
combine.c (make_extraction): Fix rtx_cost comparison to match the comment.
* combine.c (make_extraction): Fix rtx_cost comparison to
match the comment.
From-SVN: r36131
Diffstat (limited to 'gcc/combine.c')
-rw-r--r-- | gcc/combine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/combine.c b/gcc/combine.c index df5314b..56bedce3 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -6002,7 +6002,7 @@ make_extraction (mode, inner, pos, pos_rtx, len, /* Prefer ZERO_EXTENSION, since it gives more information to backends. */ - if (rtx_cost (temp, SET) < rtx_cost (temp1, SET)) + if (rtx_cost (temp, SET) <= rtx_cost (temp1, SET)) return temp; return temp1; } @@ -6218,7 +6218,7 @@ make_extraction (mode, inner, pos, pos_rtx, len, { rtx temp1 = gen_rtx_SIGN_EXTEND (pos_mode, pos_rtx); - /* Preffer ZERO_EXTENSION, since it gives more information to + /* Prefer ZERO_EXTENSION, since it gives more information to backends. */ if (rtx_cost (temp1, SET) < rtx_cost (temp, SET)) temp = temp1; |