[PATCH] D77506: [RDA] Don't adjust ReachingDefDefaultVal (NFCI)

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 6 09:45:47 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG8d75df14389b: [RDA] Don't adjust ReachingDefDefaultVal (NFCI) (authored by nikic).
Herald added a subscriber: hiraditya.

Changed prior to commit:
  https://reviews.llvm.org/D77506?vs=255176&id=255383#toc

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D77506

Files:
  llvm/lib/CodeGen/ReachingDefAnalysis.cpp


Index: llvm/lib/CodeGen/ReachingDefAnalysis.cpp
===================================================================
--- llvm/lib/CodeGen/ReachingDefAnalysis.cpp
+++ llvm/lib/CodeGen/ReachingDefAnalysis.cpp
@@ -110,7 +110,8 @@
   // only cares about the clearance from the end of the block, so adjust
   // everything to be relative to the end of the basic block.
   for (int &OutLiveReg : MBBOutRegsInfos[MBBNumber])
-    OutLiveReg -= CurInstr;
+    if (OutLiveReg != ReachingDefDefaultVal)
+      OutLiveReg -= CurInstr;
   LiveRegs.clear();
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77506.255383.patch
Type: text/x-patch
Size: 549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200406/bc6c48fd/attachment.bin>


More information about the llvm-commits mailing list