[PATCH] D70009: [ARM][ReachingDefAnalysis] Use RDA for loloops

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 15 06:22:25 PST 2019


samparker marked an inline comment as done.
samparker added inline comments.


================
Comment at: llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp:358
+  if (SetFlags) {
+    if (RDA->getReachingDef(&MBB->back(), ARM::CPSR) > RDA->getInstId(MI))
+      SetFlags = false;
----------------
dmgreen wrote:
> samparker wrote:
> > dmgreen wrote:
> > > Does this change need the Defs = [CPSR] for t2LoopDec change? Are there some tests for these cases that didn't change?
> > It didn't need it in the end as this logic allows us to query for a CPSR def inbetween LoopDec (MI) and LoopEnd (back). Again, I'll create a helper which allows us to clearly whether we have a def of something inbetween A and B.
> And we don't need to check for uses any more?
Argh! Indeed we do. And that means there's a hole in my testing.


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

https://reviews.llvm.org/D70009





More information about the llvm-commits mailing list