[PATCH] D12924: [PrologEpilogInserter] Minor refactoring.
Maksim Panchenko via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 16 20:35:47 PDT 2015
maksfb created this revision.
maksfb added reviewers: reames, qcolombet.
maksfb added a subscriber: llvm-commits.
http://reviews.llvm.org/D12924
Files:
lib/CodeGen/PrologEpilogInserter.cpp
Index: lib/CodeGen/PrologEpilogInserter.cpp
===================================================================
--- lib/CodeGen/PrologEpilogInserter.cpp
+++ lib/CodeGen/PrologEpilogInserter.cpp
@@ -516,7 +516,7 @@
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");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12924.34963.patch
Type: text/x-patch
Size: 498 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150917/45751f2f/attachment.bin>
More information about the llvm-commits
mailing list