This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hello! Attached patch fixes STV cost function to better model gains of pandn insn on non-BMI targets. As explained in the PR, STV converts four scalar arithmetic insns (2 * not and 2 * and) to one (pandn). The patch increases gain for non-BMI targets for 2 * ix86_cost->add to a total of 3 * ix86_cost->add. 2016-12-13 Uros Bizjak <ubizjak@gmail.com> PR target/78794 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain): Calculate additional gain for andnot for targets without BMI. testsuite/ChangeLog: 2016-12-13 Uros Bizjak <ubizjak@gmail.com> PR target/78794 * gcc.target/i386/pr78794.c: New test. Patch was bootstrapped and regression tested on x86_64-linux-gnu {,-m32}. Committed to mainline SVN. Uros.
Attachment:
p.diff.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |