public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/64525] New: Duplicate instructions in both paths in conditional code
@ 2015-01-07 17:44 kugan at gcc dot gnu.org
2015-01-07 17:46 ` [Bug target/64525] " kugan at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: kugan at gcc dot gnu.org @ 2015-01-07 17:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64525
Bug ID: 64525
Summary: Duplicate instructions in both paths in conditional
code
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: kugan at gcc dot gnu.org
Created attachment 34395
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34395&action=edit
testcase
gcc is generating the same instructions down both paths of conditional
execution. For exmaple, in the attached test case.
...
cmp r0, #0
movt r2, #:upper16:tree_code_length_0
ldr r0, [r2]
movweq r2, #:lower16:permanent_obstack
movteq r2, #:upper16:permanent_obstack
movwne r2, #:lower16:permanent_obstack
moveq r3, r2
movtne r2, #:upper16:permanent_obstack
...
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/64525] Duplicate instructions in both paths in conditional code
2015-01-07 17:44 [Bug target/64525] New: Duplicate instructions in both paths in conditional code kugan at gcc dot gnu.org
@ 2015-01-07 17:46 ` kugan at gcc dot gnu.org
2015-05-26 8:18 ` mkuvyrkov at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: kugan at gcc dot gnu.org @ 2015-01-07 17:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64525
--- Comment #1 from kugan at gcc dot gnu.org ---
compiler options:
arm-none-linux-gnueabi-gcc -O3 -S test.c
arm-none-linux-gnueabi-gcc -v
Using built-in specs.
COLLECT_GCC=/home/kugan/work/builds/gcc-fsf-gcc/tools/bin/arm-none-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/home/kugan/work/builds/gcc-fsf-gcc/tools/libexec/gcc/arm-none-linux-gnueabi/5.0.0/lto-wrapper
Target: arm-none-linux-gnueabi
Configured with: /home/kugan/work/sources/gcc-fsf/gcc/configure
--target=arm-none-linux-gnueabi
--prefix=/home/kugan/work/builds/gcc-fsf-gcc/tools
--with-sysroot=/home/kugan/work/builds/gcc-fsf-gcc/sysroot-arm-none-linux-gnueabi
--disable-libssp --disable-libgomp --disable-libmudflap
--enable-languages=c,c++,fortran --with-arch=armv7-a --with-fpu=vfpv3-d16
--with-float=softfp --with-thumb
Thread model: posix
gcc version 5.0.0 20141203 (experimental) (GCC)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/64525] Duplicate instructions in both paths in conditional code
2015-01-07 17:44 [Bug target/64525] New: Duplicate instructions in both paths in conditional code kugan at gcc dot gnu.org
2015-01-07 17:46 ` [Bug target/64525] " kugan at gcc dot gnu.org
@ 2015-05-26 8:18 ` mkuvyrkov at gcc dot gnu.org
2021-08-07 7:15 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: mkuvyrkov at gcc dot gnu.org @ 2015-05-26 8:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64525
--- Comment #2 from Maxim Kuvyrkov <mkuvyrkov at gcc dot gnu.org> ---
Kugan's work-in-progress patches may fix this one.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/64525] Duplicate instructions in both paths in conditional code
2015-01-07 17:44 [Bug target/64525] New: Duplicate instructions in both paths in conditional code kugan at gcc dot gnu.org
2015-01-07 17:46 ` [Bug target/64525] " kugan at gcc dot gnu.org
2015-05-26 8:18 ` mkuvyrkov at gcc dot gnu.org
@ 2021-08-07 7:15 ` pinskia at gcc dot gnu.org
2021-08-07 7:28 ` [Bug rtl-optimization/64525] " pinskia at gcc dot gnu.org
2021-08-27 7:45 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-07 7:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64525
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |7.0
Known to fail| |6.3.0
Known to work| |7.1.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug rtl-optimization/64525] Duplicate instructions in both paths in conditional code
2015-01-07 17:44 [Bug target/64525] New: Duplicate instructions in both paths in conditional code kugan at gcc dot gnu.org
` (2 preceding siblings ...)
2021-08-07 7:15 ` pinskia at gcc dot gnu.org
@ 2021-08-07 7:28 ` pinskia at gcc dot gnu.org
2021-08-27 7:45 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-07 7:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64525
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I can't figure out what fixed it in GCC 7. The gimple level is the same
between 6 and 7 even.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug rtl-optimization/64525] Duplicate instructions in both paths in conditional code
2015-01-07 17:44 [Bug target/64525] New: Duplicate instructions in both paths in conditional code kugan at gcc dot gnu.org
` (3 preceding siblings ...)
2021-08-07 7:28 ` [Bug rtl-optimization/64525] " pinskia at gcc dot gnu.org
@ 2021-08-27 7:45 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-27 7:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64525
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-08-27 7:45 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-07 17:44 [Bug target/64525] New: Duplicate instructions in both paths in conditional code kugan at gcc dot gnu.org
2015-01-07 17:46 ` [Bug target/64525] " kugan at gcc dot gnu.org
2015-05-26 8:18 ` mkuvyrkov at gcc dot gnu.org
2021-08-07 7:15 ` pinskia at gcc dot gnu.org
2021-08-07 7:28 ` [Bug rtl-optimization/64525] " pinskia at gcc dot gnu.org
2021-08-27 7:45 ` pinskia at gcc dot gnu.org
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).