[PATCH] D86841: [clang] Adds noprogress attribute deduction for infinite loops
Atmn Patel via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 29 13:39:02 PDT 2020
atmnpatel created this revision.
atmnpatel added reviewers: jdoerfert, aqjune, RalfJung.
Herald added subscribers: cfe-commits, danielkiss.
Herald added a project: clang.
atmnpatel requested review of this revision.
The `noprogress` LLVM IR attribute currently under discussion is deduced for functions that contain loops that have a constant non-zero conditional as per the C Spec. In addition, these particular loops have an additional bit of metadata `llvm.loop.noprogress` so llvm can differentiate between the loops that can be optimized out and ones that can't be optimized out. The changes to the LoopDeletion pass is incoming.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D86841
Files:
clang/lib/CodeGen/CGLoopInfo.cpp
clang/lib/CodeGen/CGLoopInfo.h
clang/lib/CodeGen/CGStmt.cpp
clang/test/CodeGen/attr-noprogress.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86841.288806.patch
Type: text/x-patch
Size: 8700 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200829/c7b7aa79/attachment.bin>
More information about the cfe-commits
mailing list