[llvm] r248084 - [PrologEpilogInserter] Minor refactoring.
Maksim Panchenko via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 18 21:42:15 PDT 2015
Author: maks
Date: Fri Sep 18 23:42:15 2015
New Revision: 248084
URL: http://llvm.org/viewvc/llvm-project?rev=248084&view=rev
Log:
[PrologEpilogInserter] Minor refactoring.
Differential Revision: http://reviews.llvm.org/D12924
Modified:
llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp
Modified: llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp?rev=248084&r1=248083&r2=248084&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp (original)
+++ llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp Fri Sep 18 23:42:15 2015
@@ -516,7 +516,7 @@ AdjustStackOffset(MachineFrameInfo *MFI,
MaxAlign = std::max(MaxAlign, Align);
// Adjust to alignment boundary.
- Offset = (Offset + Align - 1) / Align * Align;
+ Offset = RoundUpToAlignment(Offset, Align);
if (StackGrowsDown) {
DEBUG(dbgs() << "alloc FI(" << FrameIdx << ") at SP[" << -Offset << "]\n");
More information about the llvm-commits
mailing list