[PATCH] D71696: [CodeGen] WIP MachinePostRAUpdater

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 19 02:45:04 PST 2019


samparker created this revision.
Herald added subscribers: hiraditya, kristof.beyls, mgorny.
Herald added a project: LLVM.

Introduce a new class that acts as a wrapper around ReachingDefAnalysis that can be used to track changes and still query use-def chains. It's primary purpose is to enable the insertion, removal and movement of machine instructions.

This replaces how we were using RDA in ARMLowOverheadLoops. The test changes are because the updater is capable of finding more redundant instructions.


https://reviews.llvm.org/D71696

Files:
  llvm/include/llvm/CodeGen/MachinePostRAUpdater.h
  llvm/include/llvm/CodeGen/ReachingDefAnalysis.h
  llvm/lib/CodeGen/CMakeLists.txt
  llvm/lib/CodeGen/MachinePostRAUpdater.cpp
  llvm/lib/CodeGen/ReachingDefAnalysis.cpp
  llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp
  llvm/test/CodeGen/Thumb2/LowOverheadLoops/dont-remove-loop-update2.mir
  llvm/test/CodeGen/Thumb2/LowOverheadLoops/mve-tail-data-types.ll
  llvm/test/CodeGen/Thumb2/LowOverheadLoops/wlstp.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71696.234686.patch
Type: text/x-patch
Size: 42052 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191219/d8fdad73/attachment.bin>


More information about the llvm-commits mailing list