[llvm-dev] Data-dependent cycles in IR without cycles in source?

Krzysztof Parzyszek via llvm-dev llvm-dev at lists.llvm.org
Tue Sep 27 12:20:56 PDT 2016

On 9/27/2016 1:57 PM, Matthew O'Connor via llvm-dev wrote:
> In the first two cases, `Count` has an undefined value when `Count + 1`
> is evaluated and the value is scoped to the body of the loop so

So it's an undefined behavior. The compiler does _something_, but is not 
required do anything specific in such cases.


Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, 
hosted by The Linux Foundation

More information about the llvm-dev mailing list