[PATCH] D126020: [ValueTracking] Add support to deduce if an induction variable is power of two

William Junda Huang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 19 14:27:17 PDT 2022


huangjd created this revision.
huangjd added reviewers: davidxl, Carrot, nikic, spatel, reames.
Herald added a subscriber: hiraditya.
Herald added a project: All.
huangjd requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Deduce a loop induction variable is a power of two, if its initial value is a power of two, and the induction expression guaranteed to be a power of two.
This patch is cleaning up revision confusion in D124889 <https://reviews.llvm.org/D124889>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D126020

Files:
  llvm/lib/Analysis/ValueTracking.cpp
  llvm/test/Analysis/ValueTracking/known-power-of-two-urem.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126020.430807.patch
Type: text/x-patch
Size: 6154 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220519/e204aaee/attachment.bin>


More information about the llvm-commits mailing list