Re: [PATCH] xtensa: Defer storing integer constants into litpool until reload

2022-06-17 Thread Max Filippov via Gcc-patches
On Fri, Jun 17, 2022 at 6:48 AM Takayuki 'January June' Suwa wrote: > > Storing integer constants into litpool in the early stage of compilation > hinders some integer optimizations. In fact, such integer constants are > not subject to the constant folding process. > > For example: > > extern

Re: [PATCH] xtensa: Defer storing integer constants into litpool until reload

2022-06-17 Thread Takayuki 'January June' Suwa via Gcc-patches
erratum: - extern unsigned int value; + extern unsigned short value; On 2022/06/17 22:47, Takayuki 'January June' Suwa via Gcc-patches wrote: > Storing integer constants into litpool in the early stage of compilation > hinders some integer optimizations. In fact, such integer constan

[PATCH] xtensa: Defer storing integer constants into litpool until reload

2022-06-17 Thread Takayuki 'January June' Suwa via Gcc-patches
Storing integer constants into litpool in the early stage of compilation hinders some integer optimizations. In fact, such integer constants are not subject to the constant folding process. For example: extern unsigned int value; extern void foo(void); void test(void) { if (val