aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phiopt.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2021-08-01 09:55:33 -0700
committerH.J. Lu <hjl.tools@gmail.com>2021-08-01 13:32:55 -0700
commit6f0c43e97825ee54e3779afbedcd0def12443001 (patch)
tree96c88229bdbe88003206abe51a0803d7d5f99843 /gcc/tree-ssa-phiopt.c
parent8dd16447343890091874c9f588a7fea8c840cf77 (diff)
downloadgcc-6f0c43e97825ee54e3779afbedcd0def12443001.zip
gcc-6f0c43e97825ee54e3779afbedcd0def12443001.tar.gz
gcc-6f0c43e97825ee54e3779afbedcd0def12443001.tar.bz2
i386: Improve SImode constant - __builtin_clzll for -mno-lzcnt
Add a zero_extend patten for bsr_rex64_1 and use it to split SImode constant - __builtin_clzll to avoid unncessary zero_extend. gcc/ PR target/78103 * config/i386/i386.md (bsr_rex64_1_zext): New. (combine splitter for constant - clzll): Replace gen_bsr_rex64_1 with gen_bsr_rex64_1_zext. gcc/testsuite/ PR target/78103 * gcc.target/i386/pr78103-2.c: Also scan incl. * gcc.target/i386/pr78103-3.c: Scan leal|addl|incl for x32. Also scan incq.
Diffstat (limited to 'gcc/tree-ssa-phiopt.c')
0 files changed, 0 insertions, 0 deletions