[PATCH] D45355: [SelectionDAG] Fix return calling convention in expansion of ?MULO
whitequark via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 6 02:17:21 PDT 2018
whitequark updated this revision to Diff 141296.
whitequark added a comment.
Fix a typo.
Repository:
rL LLVM
https://reviews.llvm.org/D45355
Files:
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Index: lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
===================================================================
--- lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -3619,8 +3619,14 @@
}
assert(Ret.getOpcode() == ISD::MERGE_VALUES &&
"Ret value is a collection of constituent nodes holding result.");
- BottomHalf = Ret.getOperand(0);
- TopHalf = Ret.getOperand(1);
+ if(DAG.getDataLayout().isLittleEndian()) {
+ // Same as above.
+ BottomHalf = Ret.getOperand(0);
+ TopHalf = Ret.getOperand(1);
+ } else {
+ BottomHalf = Ret.getOperand(1);
+ TopHalf = Ret.getOperand(0);
+ }
}
if (isSigned) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45355.141296.patch
Type: text/x-patch
Size: 738 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180406/48883746/attachment.bin>
More information about the llvm-commits
mailing list