[llvm] r347609 - AArch64ISelLowering: Remove a return-of-assignment to allow NRVO
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 26 14:57:19 PST 2018
Author: dblaikie
Date: Mon Nov 26 14:57:18 2018
New Revision: 347609
URL: http://llvm.org/viewvc/llvm-project?rev=347609&view=rev
Log:
AArch64ISelLowering: Remove a return-of-assignment to allow NRVO
Patch by Arthur O'Dwyer!
Modified:
llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp
Modified: llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp?rev=347609&r1=347608&r2=347609&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp Mon Nov 26 14:57:18 2018
@@ -7845,7 +7845,7 @@ SDValue AArch64TargetLowering::LowerVSET
Cmp = DAG.getSExtOrTrunc(Cmp, dl, Op.getValueType());
if (ShouldInvert)
- return Cmp = DAG.getNOT(dl, Cmp, Cmp.getValueType());
+ Cmp = DAG.getNOT(dl, Cmp, Cmp.getValueType());
return Cmp;
}
More information about the llvm-commits
mailing list