[PATCH] D117252: [InstCombine] Fold ashr-exact into a icmp-ugt.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 13 17:19:57 PST 2022


craig.topper added inline comments.


================
Comment at: lib/Transforms/InstCombine/InstCombineCompares.cpp:2250
     }
     if (Pred == CmpInst::ICMP_SGT) {
       // icmp sgt (ashr X, ShAmtC), C --> icmp sgt X, ((C + 1) << ShAmtC) - 1
----------------
Does this transform work for ICMP_UGT?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D117252



More information about the llvm-commits mailing list