[llvm-bugs] [Bug 28363] New: BFNZ not generated for simple loops
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jun 29 11:16:16 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28363
Bug ID: 28363
Summary: BFNZ not generated for simple loops
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Backend: PowerPC
Assignee: unassignedbugs at nondot.org
Reporter: amehsan at ca.ibm.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
For many loops, sometimes very simple ones like:
for (i = 0; i < m; i++)
sum += b[i]*a[i];
Where sum, a and b are single precision float (arrays), we do not generate
bdnz, and instead use, three instructions in the loop. (add, compare,
branch-conditional).
I looked at one of the loops like this and Scalar Evolution was not able to
compute loop iteration count. When the loop is not unrolled (compile with
-fno-unroll-loops) this is not an issue. Also for the residue loops of an
unrolled loop we generate bdnz.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160629/7602106d/attachment-0001.html>
More information about the llvm-bugs
mailing list