[PATCH] LivePhysRegs: Add support to add pristine registers when populating with live-in/live-out registers.
Matthias Braun
matze at braunis.de
Wed Jun 24 13:23:16 PDT 2015
REPOSITORY
rL LLVM
================
Comment at: lib/CodeGen/LivePhysRegs.cpp:140
@@ +139,3 @@
+ const MachineFrameInfo &MFI = *MF.getFrameInfo();
+ if (!MFI.isCalleeSavedInfoValid())
+ return;
----------------
qcolombet wrote:
> Is there a reason we are not using MachineFrameInfo::getPristineRegs?
>
> I may be wrong, but at first glance it seems as if we copied/pasted the code from there.
This is mostly because the existing API is clunky: getPristineRegs() returns a BitVector by value(!) and has to compute an additional intermediate bitvector which we can avoid here by clearing and setting the registers directly in the LivePhysRegs.
http://reviews.llvm.org/D10139
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list