comparison gcc/fwprop.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 /* RTL-based forward propagation pass for GNU compiler. 1 /* RTL-based forward propagation pass for GNU compiler.
2 Copyright (C) 2005-2017 Free Software Foundation, Inc. 2 Copyright (C) 2005-2018 Free Software Foundation, Inc.
3 Contributed by Paolo Bonzini and Steven Bosscher. 3 Contributed by Paolo Bonzini and Steven Bosscher.
4 4
5 This file is part of GCC. 5 This file is part of GCC.
6 6
7 GCC is free software; you can redistribute it and/or modify it under 7 GCC is free software; you can redistribute it and/or modify it under
1261 1261
1262 /* If def and use are subreg, check if they match. */ 1262 /* If def and use are subreg, check if they match. */
1263 reg = DF_REF_REG (use); 1263 reg = DF_REF_REG (use);
1264 if (GET_CODE (reg) == SUBREG && GET_CODE (SET_DEST (def_set)) == SUBREG) 1264 if (GET_CODE (reg) == SUBREG && GET_CODE (SET_DEST (def_set)) == SUBREG)
1265 { 1265 {
1266 if (SUBREG_BYTE (SET_DEST (def_set)) != SUBREG_BYTE (reg)) 1266 if (maybe_ne (SUBREG_BYTE (SET_DEST (def_set)), SUBREG_BYTE (reg)))
1267 return false; 1267 return false;
1268 } 1268 }
1269 /* Check if the def had a subreg, but the use has the whole reg. */ 1269 /* Check if the def had a subreg, but the use has the whole reg. */
1270 else if (REG_P (reg) && GET_CODE (SET_DEST (def_set)) == SUBREG) 1270 else if (REG_P (reg) && GET_CODE (SET_DEST (def_set)) == SUBREG)
1271 return false; 1271 return false;