[llvm] [LoongArch] Improve pattern matching for AddLike predicate (PR #82767)
    via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Feb 23 21:22:20 PST 2024
    
    
  
================
@@ -4214,7 +4214,7 @@ bool SelectionDAGISel::isOrEquivalentToAdd(const SDNode *N) const {
     // the alignment, then this or is really an add.
     return (Off >= 0) && (((A.value() - 1) & Off) == unsigned(Off));
   }
-  return false;
+  return CurDAG->haveNoCommonBitsSet(N->getOperand(0), N->getOperand(1));
----------------
heiher wrote:
Thanks. :+1: 
https://github.com/llvm/llvm-project/pull/82767
    
    
More information about the llvm-commits
mailing list