[PATCH] D50040: [GuardWidening] Widen very likely non-taken br instructions
    Philip Reames via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Aug  3 10:01:01 PDT 2018
    
    
  
reames requested changes to this revision.
reames added inline comments.
This revision now requires changes to proceed.
================
Comment at: lib/Transforms/Scalar/GuardWidening.cpp:526
         match(Cond1, m_ICmp(Pred1, m_Specific(LHS), m_ConstantInt(RHS1)))) {
 
       ConstantRange CR0 =
----------------
You should be able to handle this case by simply inverting Pred1 if InvertCondition is true.
https://reviews.llvm.org/D50040
    
    
More information about the llvm-commits
mailing list