[PATCH] D59936: SimplifyCFG SinkCommonCodeFromPredecessors: Also sink function calls without used results (PR41259)
    Hans Wennborg via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Mar 28 08:22:32 PDT 2019
    
    
  
hans added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1471
+  // contemplating sinking, it must already be determined to be sinkable.
+  if (!I0->user_empty()) {
+    assert(I0->hasOneUse());
----------------
Actually this isn't quite right. I0 might not have a use but one of the other instructions might, or vice-versa. Same problem for the checks below...
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59936/new/
https://reviews.llvm.org/D59936
    
    
More information about the llvm-commits
mailing list