[PATCH] D122013: [InstCombine] Fold abs of known negative operand when source is sub
    Sanjay Patel via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Mar 21 08:47:47 PDT 2022
    
    
  
spatel added a comment.
Do you have commit access? It would be good to push the original tests as a preliminary patch.
================
Comment at: llvm/test/Transforms/InstCombine/abs-intrinsic.ll:473
+  %0 = call i32 @llvm.abs.i32(i32 %sub, i1 true)
+  %add = add nsw i32 %0, %x
+  br label %cond.end
----------------
Why did the 'add' operand change from %y to %x?
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122013/new/
https://reviews.llvm.org/D122013
    
    
More information about the llvm-commits
mailing list