[PATCH] D46760: [InstCombine] Enhance narrowUDivURem.
    Sanjay Patel via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Jun  6 09:02:41 PDT 2018
    
    
  
spatel added a comment.
Note that we don't actively canonicalize to shifts:
 %t1 = shl i64 %x, 3
  %r = and i64 %t1, -32
>
=
  %right = lshr i64 %x, 2
  %r = shl i64 %right, 5
https://rise4fun.com/Alive/uz6Y
...so from an instcombine perspective, this is just a case of a *missing* transform (rather than reversing an existing transform).
Repository:
  rL LLVM
https://reviews.llvm.org/D46760
    
    
More information about the llvm-commits
mailing list