[PATCH] D16434: Fix LivePhysRegs::addLiveOuts

Weiming Zhao via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 22 14:25:30 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL258569:  Fix LivePhysRegs::addLiveOuts (authored by weimingz).

Changed prior to commit:
  http://reviews.llvm.org/D16434?vs=45741&id=45744#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D16434

Files:
  llvm/trunk/lib/CodeGen/LivePhysRegs.cpp

Index: llvm/trunk/lib/CodeGen/LivePhysRegs.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/LivePhysRegs.cpp
+++ llvm/trunk/lib/CodeGen/LivePhysRegs.cpp
@@ -151,7 +151,7 @@
   if (AddPristinesAndCSRs) {
     const MachineFunction &MF = *MBB->getParent();
     addPristines(*this, MF, *TRI);
-    if (!MBB->isReturnBlock()) {
+    if (MBB->isReturnBlock()) {
       // The return block has no successors whose live-ins we could merge
       // below. So instead we add the callee saved registers manually.
       for (const MCPhysReg *I = TRI->getCalleeSavedRegs(&MF); *I; ++I)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16434.45744.patch
Type: text/x-patch
Size: 627 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160122/1df40912/attachment.bin>


More information about the llvm-commits mailing list