[PATCH] D129860: Inliner: don't mark call sites as 'nounwind' if that would be redundant
    Nikita Popov via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Jul 15 08:31:26 PDT 2022
    
    
  
nikic added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/InlineFunction.cpp:2205
+            CalleeIsNoUnwind = F->doesNotThrow();
+          if (!CalleeIsNoUnwind)
+            CI->setDoesNotThrow();
----------------
Writing this as `!CI->doesNotThrow()` might be more elegant? That checks the function attribute as well.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129860/new/
https://reviews.llvm.org/D129860
    
    
More information about the llvm-commits
mailing list