[llvm] r349005 - [AMDGPU] Fix build failure
Stanislav Mekhanoshin via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 12 21:21:25 PST 2018
Author: rampitec
Date: Wed Dec 12 21:21:25 2018
New Revision: 349005
URL: http://llvm.org/viewvc/llvm-project?rev=349005&view=rev
Log:
[AMDGPU] Fix build failure
Fixed error 'lambda capture 'CondReg' is not required to be captured
for this use'.
Modified:
llvm/trunk/lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp?rev=349005&r1=349004&r2=349005&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp Wed Dec 12 21:21:25 2018
@@ -199,7 +199,7 @@ static unsigned optimizeVcndVcmpPair(Mac
MRI.use_nodbg_empty(CmpReg)) ||
(CmpReg == CondReg &&
std::none_of(std::next(Cmp->getIterator()), Andn2->getIterator(),
- [TRI, CondReg](const MachineInstr &MI) {
+ [TRI](const MachineInstr &MI) {
return MI.readsRegister(CondReg, TRI); }))) {
LLVM_DEBUG(dbgs() << "Erasing: " << *Cmp << '\n');
More information about the llvm-commits
mailing list