i386: Use existing temporary register in rounding functions
authorUros Bizjak <ubizjak@gmail.com>
Mon, 28 Dec 2020 15:52:45 +0000 (16:52 +0100)
committerUros Bizjak <ubizjak@gmail.com>
Mon, 28 Dec 2020 15:53:56 +0000 (16:53 +0100)
commit97d3ddcfc9c67d26e3869a261a506ef70e7f092e
tree08ca52bdc1fc0f4c3f0c9a6a7d2f871edc1f46bc
parent12ae2bc70846a2be8255eaa41322cd1a5a7b7350
i386: Use existing temporary register in rounding functions

It is possible to avoid the call to force_reg and use existing
temporary register in ix86_expand_trunc, ix86_expand_round and
ix86_expand_rounddf_32 expanders.

2020-12-28  Uroš Bizjak  <ubizjak@gmail.com>

gcc/
* config/i386/i386-expand.c (ix86_expand_trunc): Use
existing temporary register to avoid a call to force_reg.
gcc/config/i386/i386-expand.c