[PATCH] Refactor: Simplify boolean conditional return statements in lib/Target/XCore
Richard
legalize at xmission.com
Mon May 25 10:22:26 PDT 2015
Update from comments
http://reviews.llvm.org/D9988
Files:
lib/Target/XCore/XCoreISelLowering.cpp
Index: lib/Target/XCore/XCoreISelLowering.cpp
===================================================================
--- lib/Target/XCore/XCoreISelLowering.cpp
+++ lib/Target/XCore/XCoreISelLowering.cpp
@@ -1461,9 +1461,7 @@
CCState CCInfo(CallConv, isVarArg, MF, RVLocs, Context);
if (!CCInfo.CheckReturn(Outs, RetCC_XCore))
return false;
- if (CCInfo.getNextStackOffset() != 0 && isVarArg)
- return false;
- return true;
+ return CCInfo.getNextStackOffset() == 0 || !isVarArg;
}
SDValue
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9988.26456.patch
Type: text/x-patch
Size: 507 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150525/2ca59697/attachment.bin>
More information about the llvm-commits
mailing list