[PATCH] D142542: [InstSimplify] Simplify icmp between Shl instructions of the same value

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 15 06:58:10 PST 2023


nikic accepted this revision.
nikic added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: llvm/test/Transforms/InstSimplify/compare.ll:2886
+  %x2 = shl i8 %or, 2
+  %cmp = icmp slt i8 %x1, %x2
+  ret i1 %cmp
----------------
Based on test name, this was supposed to be ult?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D142542



More information about the llvm-commits mailing list