[PATCH] LivePhysRegs: Add support to add pristine registers when populating with live-in/live-out registers.
matze at braunis.de
Wed Jun 24 13:23:16 PDT 2015
Comment at: lib/CodeGen/LivePhysRegs.cpp:140
@@ +139,3 @@
+ const MachineFrameInfo &MFI = *MF.getFrameInfo();
+ if (!MFI.isCalleeSavedInfoValid())
> 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.
More information about the llvm-commits