aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2014-04-14 16:49:24 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2014-04-14 09:49:24 -0700
commit10fa463ff74b95c40ef99fcc94713caa67a218e6 (patch)
treea714b6e945ae22baa7b37b0aa049f46b873c29e8 /gcc
parent39e6a690ec42088bcb7488f9c8e322ee3a1907cd (diff)
downloadgcc-10fa463ff74b95c40ef99fcc94713caa67a218e6.zip
gcc-10fa463ff74b95c40ef99fcc94713caa67a218e6.tar.gz
gcc-10fa463ff74b95c40ef99fcc94713caa67a218e6.tar.bz2
Check optimize_insn_for_speed_p in *fixuns_trunc<mode>_1
Since fixuns_trunc<mode>si2 expander checks optimize_insn_for_size_p before generating *fixuns_trunc<mode>_1, we should use optimize_insn_for_speed_p in *fixuns_trunc<mode>_1 for consistency. PR target/60827 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check optimize_insn_for_speed_p instead of optimize_function_for_speed_p. From-SVN: r209383
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/i386/i386.md2
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5a7832b..e3a5660 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR target/60827
+ * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
+ optimize_insn_for_speed_p instead of
+ optimize_function_for_speed_p.
+
2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
* doc/invoke.texi (free): Document AArch64.
diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md
index 25e2e93..80ebe54 100644
--- a/gcc/config/i386/i386.md
+++ b/gcc/config/i386/i386.md
@@ -4367,7 +4367,7 @@
(clobber (match_scratch:<ssevecmode> 1 "=x,&x"))
(clobber (match_scratch:<ssevecmode> 2 "=x,x"))]
"!TARGET_64BIT && TARGET_SSE2 && TARGET_SSE_MATH
- && optimize_function_for_speed_p (cfun)"
+ && optimize_insn_for_speed_p ()"
"#"
"&& reload_completed"
[(const_int 0)]