[PATCH] D145334: [InstCombine] Add tests for transform `(shift X, (Or Y, BitWidth-1))`; NFC

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 6 01:33:48 PST 2023


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

LG



================
Comment at: llvm/test/Transforms/InstCombine/shift.ll:2079
+  %amt = or i6 %c, 5
+  ;; nsw not needed for transform, just check that we propegate.
+  %y = shl nsw i6 %x, %amt
----------------
propagate


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D145334



More information about the llvm-commits mailing list