[compiler-rt] [NFC][CodeGen] Create method to clear registers (PR #66958)

Nick Desaulniers via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 21 13:29:09 PDT 2023


================
@@ -8335,6 +8335,26 @@ bool AArch64InstrInfo::shouldOutlineFromFunctionByDefault(
   return MF.getFunction().hasMinSize();
 }
 
+void AArch64InstrInfo::buildClearRegister(Register Reg, MachineBasicBlock &MBB,
----------------
nickdesaulniers wrote:

Why make it a method on InstrInfo? Why not another method of FrameLowering?

Do you plan to call `buildClearRegister` from somewhere other than FrameLowering?

https://github.com/llvm/llvm-project/pull/66958


More information about the llvm-commits mailing list