[PATCH] D124890: [ValueTracking] Added support to deduce PHI Nodes values being a power of 2

William Junda Huang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 3 15:59:37 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.

Add Value Tracking support to deduce induction variable being a power of 2, allowing urem optimizations


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124890

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: D124890.426874.patch
Type: text/x-patch
Size: 5926 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220503/0ab6ab18/attachment.bin>


More information about the llvm-commits mailing list