[llvm] 12b0ef5 - [X86] Simplify BB->getParent(). NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon May 27 20:49:36 PDT 2024
Author: Fangrui Song
Date: 2024-05-27T20:49:31-07:00
New Revision: 12b0ef5dade664fb24cb4e627f1c391d937c0925
URL: https://github.com/llvm/llvm-project/commit/12b0ef5dade664fb24cb4e627f1c391d937c0925
DIFF: https://github.com/llvm/llvm-project/commit/12b0ef5dade664fb24cb4e627f1c391d937c0925.diff
LOG: [X86] Simplify BB->getParent(). NFC
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 1a9b215787e10..ce6adaa6a10c6 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -35395,7 +35395,7 @@ X86TargetLowering::EmitLoweredTLSAddr(MachineInstr &MI,
MachineFunction &MF = *BB->getParent();
// Emit CALLSEQ_START right before the instruction.
- BB->getParent()->getFrameInfo().setAdjustsStack(true);
+ MF.getFrameInfo().setAdjustsStack(true);
unsigned AdjStackDown = TII.getCallFrameSetupOpcode();
MachineInstrBuilder CallseqStart =
BuildMI(MF, MIMD, TII.get(AdjStackDown)).addImm(0).addImm(0).addImm(0);
More information about the llvm-commits
mailing list