* [PATCH] [i386] Set all_regs to true in the call to replace_rtx [PR102057]
@ 2021-08-26 15:29 Uros Bizjak
0 siblings, 0 replies; only message in thread
From: Uros Bizjak @ 2021-08-26 15:29 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 403 bytes --]
We want to replace all REGs equal to FROM.
2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
gcc/
PR target/102057
* config/i386/i386.md (cmove reg-reg move elimination peephole2s):
Set all_regs to true in the call to replace_rtx.
I was not able to create a testcase without warnings.
Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}.
Pushed to master.
Uros.
[-- Attachment #2: p.diff.txt --]
[-- Type: text/plain, Size: 1112 bytes --]
diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md
index 41d85623ad6..c80dcb57a18 100644
--- a/gcc/config/i386/i386.md
+++ b/gcc/config/i386/i386.md
@@ -19475,8 +19475,8 @@
(match_dup 0)))]
{
operands[7] = SET_DEST (XVECEXP (PATTERN (peep2_next_insn (1)), 0, 0));
- operands[8] = replace_rtx (operands[5], operands[0], operands[1]);
- operands[9] = replace_rtx (operands[6], operands[0], operands[1]);
+ operands[8] = replace_rtx (operands[5], operands[0], operands[1], true);
+ operands[9] = replace_rtx (operands[6], operands[0], operands[1], true);
})
;; Eliminate a reg-reg mov by inverting the condition of a cmov (#2).
@@ -19507,8 +19507,8 @@
(match_dup 0)))]
{
operands[7] = SET_DEST (XVECEXP (PATTERN (peep2_next_insn (2)), 0, 0));
- operands[8] = replace_rtx (operands[5], operands[0], operands[1]);
- operands[9] = replace_rtx (operands[6], operands[0], operands[1]);
+ operands[8] = replace_rtx (operands[5], operands[0], operands[1], true);
+ operands[9] = replace_rtx (operands[6], operands[0], operands[1], true);
})
(define_expand "mov<mode>cc"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-26 15:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-26 15:29 [PATCH] [i386] Set all_regs to true in the call to replace_rtx [PR102057] Uros Bizjak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).