Opened 6 years ago

Last modified 3 years ago

#8887 new bug

Double double assignment in optimized Cmm on SPARC

Reported by: kgardas Owned by:
Priority: normal Milestone:
Component: Compiler (CodeGen) Version: 7.9
Keywords: CodeGen Cc: simonmar
Operating System: Solaris Architecture: sparc
Type of failure: Runtime performance bug Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

Hello, while reading ffi003 asm/opt-cmm for fixing this on SPARC I've noticed this code, this is optimized Cmm dump:

    112       c1or:
    113           _s1nw::F64 = F64[_s1nv::P32 + 3];
    114           _c1oj::I32 = sin;
    115           _c1ok::F64 = _s1nw::F64;

this assignment to _s1nw::F64 looks useless as we may assign directly to _c1ok::F64, may we not? Both optimized and non-optimized Cmms attached.

Attachments (2)

ffi003.cmm (38.5 KB) - added by kgardas 6 years ago.
ffi003.opt-cmm (6.5 KB) - added by kgardas 6 years ago.

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by kgardas

Attachment: ffi003.cmm added

Changed 6 years ago by kgardas

Attachment: ffi003.opt-cmm added

comment:1 Changed 6 years ago by kgardas

Version: 7.6.37.9

comment:2 Changed 5 years ago by thomie

Cc: simonmar added
Component: CompilerCompiler (CodeGen)

comment:3 Changed 3 years ago by simonpj

Keywords: CodeGen added
Note: See TracTickets for help on using tickets.