[PATCH] D86841: [clang] Add mustprogress and llvm.loop.mustprogress attribute deduction

Juneyoung Lee via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 30 15:22:26 PDT 2020


aqjune added inline comments.


================
Comment at: clang/lib/CodeGen/CGStmt.cpp:801
+             getLangOpts().CPlusPlus11 || getLangOpts().CPlusPlus14 ||
+             getLangOpts().CPlusPlus17 || getLangOpts().C2x) {
+    LoopMustProgress = true;
----------------
A silly question: does old C/C++ not guarantee that loops should make forward progress?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D86841/new/

https://reviews.llvm.org/D86841



More information about the cfe-commits mailing list