[PATCH] D123118: [InstCombine] SimplifyDemandedUseBits - remove lshr node if we only demand known sign bit

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 7 05:43:09 PDT 2022


lebedev.ri added a comment.

LGTM, thanks.



================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp:556
   }
   case Instruction::Shl: {
     const APInt *SA;
----------------
I believe the same applies here.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123118/new/

https://reviews.llvm.org/D123118



More information about the llvm-commits mailing list