Open Quuxplusone opened 7 years ago
Bugzilla Link | PR31930 |
Status | NEW |
Importance | P normal |
Reported by | drraph@gmail.com |
Reported on | 2017-02-10 10:56:20 -0800 |
Last modified on | 2017-02-13 01:55:44 -0800 |
Version | trunk |
Hardware | PC Linux |
CC | drraph@gmail.com, hfinkel@anl.gov, llvm-bugs@lists.llvm.org |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
If we take:
float f(int x[]) {
float p = 1;
#pragma unroll
for (int i = 0; i < 960; i++)
p += 1;
return p;
}
and compile simply with -O and no other flags, we get:
.LCPI0_0:
.long 1148207104 # float 961
f: # @f
movss xmm0, dword ptr [rip + .LCPI0_0] # xmm0 = mem[0],zero,zero,zero
ret