[PATCH] D150069: [InstCombine] Precommit a test

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 11 07:03:35 PDT 2023


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

LGTM



================
Comment at: llvm/test/Transforms/InstCombine/select-icmp-and-zero-shl.ll:45
+  %shl.mask = and i32 %x, 1073741823
+  %tobool.not = icmp ne i32 %shl.mask, 0
+  %mul = shl i32 %x, 2
----------------
Add an extra use of `%tobool.not` (pass to call) to prevent it from being converted to icmp eq.


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

https://reviews.llvm.org/D150069



More information about the llvm-commits mailing list