Displaying 1 result from an estimated 1 matches for "endless_loop".
2013 Feb 21
0
[LLVMdev] [llvm] r175553 - Fix a bug in mayHaveSideEffects. Functions that do not return are now considered as instructions with side effects.
...unk/test/Transforms/FunctionAttrs/noreturn.ll (added)
>>> +++ llvm/trunk/test/Transforms/FunctionAttrs/noreturn.ll Tue Feb 19 14:02:09 2013
>>> @@ -0,0 +1,18 @@
>>> +; RUN: opt < %s -functionattrs -instcombine -S | FileCheck %s
>>> +
>>> +define void @endless_loop() noreturn nounwind readnone ssp uwtable {
>>> +entry:
>>> + br label %while.body
>>> +
>>> +while.body:
>>> + br label %while.body
>>> +}
>>> +;CHECK: @main
>>> +;CHECK: endless_loop
>>> +;CHECK: ret
>>> +d...