[Issue 21527] New: Unnecessary store to memory in SIMD code
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 6 10:57:36 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21527
Issue ID: 21527
Summary: Unnecessary store to memory in SIMD code
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: bugzilla at digitalmars.com
The following code:
float f(float a, float b) {
float c = a + b;
float d = c - b;
return d;
}
unnecessarily stores c into memory when it could be left in an XMM register.
Compile with -m32 -O.
--
More information about the Digitalmars-d-bugs
mailing list