[llvm] r290248 - [X86] Vectorcall Calling Convention - Adding CodeGen Complete Support
Oren Ben Simhon via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 21 01:47:32 PST 2016
Author: orenb
Date: Wed Dec 21 03:47:31 2016
New Revision: 290248
URL: http://llvm.org/viewvc/llvm-project?rev=290248&view=rev
Log:
[X86] Vectorcall Calling Convention - Adding CodeGen Complete Support
Fixing a warning.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=290248&r1=290247&r2=290248&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Wed Dec 21 03:47:31 2016
@@ -2837,8 +2837,8 @@ SDValue X86TargetLowering::LowerFormalAr
// The next loop assumes that the locations are in the same order of the
// input arguments.
- assert(isSortedByValueNo(ArgLocs) &&
- "Argument Location list must be sorted before lowering");
+ if (!isSortedByValueNo(ArgLocs))
+ llvm_unreachable("Argument Location list must be sorted before lowering");
SDValue ArgValue;
for (unsigned I = 0, InsIndex = 0, E = ArgLocs.size(); I != E;
@@ -3349,8 +3349,8 @@ X86TargetLowering::LowerCall(TargetLower
// The next loop assumes that the locations are in the same order of the
// input arguments.
- assert(isSortedByValueNo(ArgLocs) &&
- "Argument Location list must be sorted before lowering");
+ if (!isSortedByValueNo(ArgLocs))
+ llvm_unreachable("Argument Location list must be sorted before lowering");
// Walk the register/memloc assignments, inserting copies/loads. In the case
// of tail call optimization arguments are handle later.
More information about the llvm-commits
mailing list