[PATCH] D32476: [EarlyCSE] Remove guards with conditions known to be true
    Philip Reames via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Apr 26 18:35:59 PDT 2017
    
    
  
reames added inline comments.
================
Comment at: test/Transforms/EarlyCSE/guards.ll:270
+; Demonstrates the case we do not currently cover: branch by guarded condition.
+; We can replace the branching by cmp condition by unconditional branch.
+
----------------
Not in EarlyCSE (which isn't allowed to modify CFG).  We can fold the condition to false at use though.  That should be a separate patch.
https://reviews.llvm.org/D32476
    
    
More information about the llvm-commits
mailing list