[PATCH] D148404: [ValueTracking] Apply the isKnownNonZero techniques in `ashr`/`lshl` to `shl` and vice-versa

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 17 11:54:09 PDT 2023


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

LGTM, though I suspect you'd need less code if you didn't try to factor this into one function and just handled left and right shifts separately.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D148404



More information about the llvm-commits mailing list