[PATCH] D70240: [ARM][ReachingDefs] Remove dead code in loloops.

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 14 06:44:54 PST 2019


samparker created this revision.
samparker added reviewers: dmgreen, SjoerdMeijer, arsenm.
Herald added subscribers: hiraditya, kristof.beyls, wdng.
Herald added a project: LLVM.
samparker added a parent revision: D70009: [ARM][ReachingDefAnalysis] Use RDA for loloops.
samparker edited the summary of this revision.
samparker edited the summary of this revision.

Add some more helper functions to ReachingDefs to query the uses of a given MachineInstr and also to query whether two MachineInstrs use the same def of a register. For Arm, while tail-predicating, these helpers are used in the low-overhead loops to remove the dead code that calculates the number of loop iterations.

There's some duplicate code in here, from the parent patch, for including RDA in the pass.


https://reviews.llvm.org/D70240

Files:
  llvm/include/llvm/CodeGen/ReachingDefAnalysis.h
  llvm/lib/CodeGen/ReachingDefAnalysis.cpp
  llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp
  llvm/test/CodeGen/Thumb2/LowOverheadLoops/fast-fp-loops.ll
  llvm/test/CodeGen/Thumb2/LowOverheadLoops/mve-tail-data-types.ll
  llvm/test/CodeGen/Thumb2/LowOverheadLoops/vector-arith-codegen.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70240.229301.patch
Type: text/x-patch
Size: 16321 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191114/0e7bc596/attachment.bin>


More information about the llvm-commits mailing list