[C++] Loop unrolling dependent on operator of comparison - by CodingCat

Status : 

  Deferred<br /><br />
		The product team has reviewed this issue and has deferred it for consideration at a later time.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 676003 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 6/19/2011 10:34:17 AM
Access Restriction Public


Constexpr integer-based for loops are correctly unrolled when using operator < inside their conditional expression, however, they are not unrolled when using operator != instead, which is quite a common case as it is also compilant with forward iterators.
Sign in to post a comment.
Posted by Microsoft on 6/24/2011 at 2:08 PM
Thanks for reporting this issue. Real world feedback on our optimizer is invaluable in improving the quality of generated code. The optimizer team will look into addressing this weakness in the loop unroller in future versions of the VC++ compiler.

ian Bearman
VC++ Code Generation and Optimization Team
Posted by MS-Moderator10 [Feedback Moderator] on 6/19/2011 at 8:23 PM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 6/19/2011 at 10:48 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)