[llvm] [InstCombine] recognize missed i128 split optimization (PR #129363)
    Muhammad Bassiouni via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sat Mar  1 15:20:57 PST 2025
    
    
  
================
@@ -3119,6 +3119,13 @@ static Value *matchOrConcat(Instruction &Or, InstCombiner::BuilderTy &Builder) {
       match(UpperSrc, m_BitReverse(m_Value(UpperBRev))))
     return ConcatIntrinsicCalls(Intrinsic::bitreverse, UpperBRev, LowerBRev);
 
+  Value *X;
+  if (match(LowerSrc, m_SExt(m_Value(X))) &&
+      match(UpperSrc,
+            m_SExt(m_AShr(m_Specific(X), m_SpecificInt(HalfWidth / 2 - 1))))) {
----------------
bassiounix wrote:
Fixed
https://github.com/llvm/llvm-project/pull/129363
    
    
More information about the llvm-commits
mailing list