[PATCH] D152082: [ValueTracking] getUnderlyingObject() look through phi.

Joshua Cao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 4 02:00:08 PDT 2023


caojoshua updated this revision to Diff 528192.
caojoshua added a comment.

Capture `Count` variable by reference, and increment it once each time `Visit()` is called.

This hopefully alleviates some compile-time concerns. When looking through PHIs, each operand will increment the same Count.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D152082

Files:
  llvm/lib/Analysis/ValueTracking.cpp
  llvm/test/Analysis/BasicAA/phi-aa.ll
  llvm/test/Analysis/BasicAA/recphi.ll
  llvm/test/CodeGen/AArch64/aarch64-matrix-umull-smull.ll
  llvm/test/CodeGen/AMDGPU/promote-alloca-to-lds-phi.ll
  llvm/test/CodeGen/ARM/arm-shrink-wrapping-linux.ll
  llvm/test/CodeGen/Thumb2/mve-memtp-loop.ll
  llvm/test/Transforms/InstCombine/ptr-replace-alloca.ll
  llvm/test/Transforms/LoopVectorize/ARM/pointer_iv.ll
  llvm/test/Transforms/LoopVectorize/X86/gather_scatter.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152082.528192.patch
Type: text/x-patch
Size: 54726 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230604/9299351c/attachment.bin>


More information about the llvm-commits mailing list