[PATCH] D18901: ARM: Use a callee save register for the swiftself parameter.

Renato Golin via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 8 11:12:30 PDT 2016


rengolin added inline comments.

================
Comment at: lib/Target/ARM/ARMFrameLowering.cpp:914
@@ -925,1 +913,3 @@
+      bool isLiveIn = MF.getRegInfo().isLiveIn(Reg);
+      if (!isLiveIn)
         MBB.addLiveIn(Reg);
----------------
Why not just make:

    bool isKill = !MF.getRegInfo().isLiveIn(Reg);


Repository:
  rL LLVM

http://reviews.llvm.org/D18901





More information about the llvm-commits mailing list