[PATCH] D154584: Improve collectEphemeralValues and use it in CodeGenPrepare

Serguei Katkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 6 02:16:07 PDT 2023


skatkov created this revision.
skatkov added reviewers: jdoerfert, nikic, arsenm, fhahn.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
skatkov requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

Improve collectEphemeralValues to find ephemeral induction variable
and be based on wouldInstructionBeTriviallyDead utility function.

Also use this function in CodeGenPrepare to collect and erase the same
set of ephemeral values.


https://reviews.llvm.org/D154584

Files:
  llvm/include/llvm/Analysis/CodeMetrics.h
  llvm/lib/Analysis/CodeMetrics.cpp
  llvm/lib/CodeGen/CodeGenPrepare.cpp
  llvm/test/Transforms/CodeGenPrepare/X86/delete-assume-dead-code.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154584.537630.patch
Type: text/x-patch
Size: 12569 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230706/ef5c2cad/attachment.bin>


More information about the llvm-commits mailing list