[PATCH] D107622: [FuncSpec] Return changed if function is changed by tryToReplaceWithConstant
    Sjoerd Meijer via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Aug  6 00:36:05 PDT 2021
    
    
  
SjoerdMeijer added inline comments.
================
Comment at: llvm/lib/Transforms/IPO/FunctionSpecialization.cpp:765
         for (auto &I : make_early_inc_range(BB))
-          FS.tryToReplaceWithConstant(&I);
+          Changed |= FS.tryToReplaceWithConstant(&I);
       }
----------------
I think this now deserves a comment.
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107622/new/
https://reviews.llvm.org/D107622
    
    
More information about the llvm-commits
mailing list