public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH 0/7] Improve do_store_flag
@ 2023-05-20  2:14 Andrew Pinski
  2023-05-20  2:14 ` [PATCH 1/7] Move fold_single_bit_test to expr.cc from fold-const.cc Andrew Pinski
                   ` (6 more replies)
  0 siblings, 7 replies; 21+ messages in thread
From: Andrew Pinski @ 2023-05-20  2:14 UTC (permalink / raw)
  To: gcc-patches; +Cc: Andrew Pinski

This patch set improves do_store_flag for the single bit case.
We go back to expanding the code directly rather than building some
trees. Plus instead of using shift+and we use directly bit_field
extraction; this improves code generation on avr.

Andrew Pinski (7):
  Move fold_single_bit_test to expr.cc from fold-const.cc
  Inline and simplify fold_single_bit_test_into_sign_test into
    fold_single_bit_test
  Use get_def_for_expr in fold_single_bit_test
  Simplify fold_single_bit_test slightly
  Simplify fold_single_bit_test with respect to code
  Use BIT_FIELD_REF inside fold_single_bit_test
  Expand directly for single bit test

 gcc/expr.cc       |  91 ++++++++++++++++++++++++++++++++-----
 gcc/fold-const.cc | 112 ----------------------------------------------
 gcc/fold-const.h  |   1 -
 3 files changed, 81 insertions(+), 123 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: [PATCH 7/7] Expand directly for single bit test
@ 2023-05-21 18:16 David Edelsohn
  2023-05-21 18:25 ` Andrew Pinski
  0 siblings, 1 reply; 21+ messages in thread
From: David Edelsohn @ 2023-05-21 18:16 UTC (permalink / raw)
  To: Andrew Pinski; +Cc: GCC Patches

[-- Attachment #1: Type: text/plain, Size: 471 bytes --]

Hi, Andrew

Thanks for this series of patches to improve do_store_flag.  Unfortunately
this specific patch in the series has caused a bootstrap failure on
powerpc-aix.  I bisected this failure to this specific patch. Note that I
am building as 32 bit, so this could be a specific issue about bit size.

	* expr.cc (fold_single_bit_test): Rename to ...
	(expand_single_bit_test): This and expand directly.
	(do_store_flag): Update for the rename function.


Thanks, David

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2023-05-21 23:01 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-20  2:14 [PATCH 0/7] Improve do_store_flag Andrew Pinski
2023-05-20  2:14 ` [PATCH 1/7] Move fold_single_bit_test to expr.cc from fold-const.cc Andrew Pinski
2023-05-20  4:43   ` Jeff Law
2023-05-20  2:14 ` [PATCH 2/7] Inline and simplify fold_single_bit_test_into_sign_test into fold_single_bit_test Andrew Pinski
2023-05-20  4:47   ` Jeff Law
2023-05-20  4:48   ` Jeff Law
2023-05-20  2:14 ` [PATCH 3/7] Use get_def_for_expr in fold_single_bit_test Andrew Pinski
2023-05-20  4:49   ` Jeff Law
2023-05-20  2:14 ` [PATCH 4/7] Simplify fold_single_bit_test slightly Andrew Pinski
2023-05-20  4:51   ` Jeff Law
2023-05-20  2:14 ` [PATCH 5/7] Simplify fold_single_bit_test with respect to code Andrew Pinski
2023-05-20  4:52   ` Jeff Law
2023-05-20  2:14 ` [PATCH 6/7] Use BIT_FIELD_REF inside fold_single_bit_test Andrew Pinski
2023-05-20  4:54   ` Jeff Law
2023-05-20  2:14 ` [PATCH 7/7] Expand directly for single bit test Andrew Pinski
2023-05-20  4:55   ` Jeff Law
2023-05-21 18:16 David Edelsohn
2023-05-21 18:25 ` Andrew Pinski
2023-05-21 18:45   ` Andrew Pinski
2023-05-21 19:23   ` Jeff Law
2023-05-21 23:01   ` David Edelsohn

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).