[PATCH] D113191: [TwoAddressInstructionPass] Update existing physreg live intervals

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 5 09:47:13 PDT 2021


arsenm accepted this revision.
arsenm added inline comments.
This revision is now accepted and ready to land.


================
Comment at: llvm/lib/CodeGen/TwoAddressInstructionPass.cpp:1555-1557
+            VNInfo *VNI =
+                LR->getNextValue(LastCopyIdx, LIS->getVNInfoAllocator());
+            LR->addSegment(LiveRange::Segment(LastCopyIdx, endIdx, VNI));
----------------
Having to repeat the code everywhere for virtual and physregs is pretty annoying


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D113191



More information about the llvm-commits mailing list