[PATCH] D17294: Fix for PR 26500
Nemanja Ivanovic via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 19 11:43:18 PST 2016
nemanjai updated this revision to Diff 48536.
nemanjai added a comment.
Finally cleaned up the logic in findScratchRegister. Now it will try its best to find two unique registers. If it can, it sets both (if the pointers are passes) and returns true. If it can find only one, it will set both to that and return true if only one is required or false if two are required. Finally, if it can't find any free registers, it will return false and set both to R0 if the pointers are passed.
The condition that determines whether two registers are needed is now in a separate function which is queried both in canUseAsPrologue and emitPrologue.
Repository:
rL LLVM
http://reviews.llvm.org/D17294
Files:
lib/Target/PowerPC/PPCFrameLowering.cpp
lib/Target/PowerPC/PPCFrameLowering.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17294.48536.patch
Type: text/x-patch
Size: 14269 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160219/0443e06f/attachment.bin>
More information about the llvm-commits
mailing list