diff options
author | Roger Sayle <roger@nextmovesoftware.com> | 2022-07-09 09:07:18 +0100 |
---|---|---|
committer | Roger Sayle <roger@nextmovesoftware.com> | 2022-07-09 09:07:18 +0100 |
commit | b434c94bf7a5d4bb9ca8f0b5442ca85b43f32a9a (patch) | |
tree | 3d69b4f99a965587e364d51b132cb228c2d16cc4 /gcc/expr.cc | |
parent | 002d81affa8a4e625993d3c9c7840ca4aba9750c (diff) | |
download | gcc-b434c94bf7a5d4bb9ca8f0b5442ca85b43f32a9a.zip gcc-b434c94bf7a5d4bb9ca8f0b5442ca85b43f32a9a.tar.gz gcc-b434c94bf7a5d4bb9ca8f0b5442ca85b43f32a9a.tar.bz2 |
Improve preservation of FLAGS_REG mode in i386.md's peephole2s.
The patch tweaks several peephole2s in i386.md that propagate the flags
register, but take its mode from the SET_SRC rather than preserve the
mode of the original SET_DEST. This encounters problems when the
SET_SRC is a VOIDmode CONST_INT. Fixed by using match_operand with a
flags_reg_operand predicate.
2022-07-09 Roger Sayle <roger@nextmovesoftware.com>
gcc/ChangeLog
* config/i386/i386.md (define_peephole2): Use match_operand of
flags_reg_operand to capture and preserve the mode of FLAGS_REG.
(define_peephole2): Likewise.
(define_peephole2): Likewise...
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions