[llvm] 08497a7 - [VP] Fix unused variable in release configurations
Fraser Cormack via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 5 02:34:34 PDT 2022
Author: Fraser Cormack
Date: 2022-10-05T10:33:07+01:00
New Revision: 08497a785bfb790ff966c8d76773fa60ccb4d03b
URL: https://github.com/llvm/llvm-project/commit/08497a785bfb790ff966c8d76773fa60ccb4d03b
DIFF: https://github.com/llvm/llvm-project/commit/08497a785bfb790ff966c8d76773fa60ccb4d03b.diff
LOG: [VP] Fix unused variable in release configurations
Added:
Modified:
llvm/lib/CodeGen/ExpandVectorPredication.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/ExpandVectorPredication.cpp b/llvm/lib/CodeGen/ExpandVectorPredication.cpp
index 6fdf37849a51..1a3a060c3e45 100644
--- a/llvm/lib/CodeGen/ExpandVectorPredication.cpp
+++ b/llvm/lib/CodeGen/ExpandVectorPredication.cpp
@@ -469,8 +469,8 @@ Value *CachingVPExpander::expandPredicationInComparison(IRBuilder<> &Builder,
assert((maySpeculateLanes(VPI) || VPI.canIgnoreVectorLengthParam()) &&
"Implicitly dropping %evl in non-speculatable operator!");
- auto OC = *VPI.getFunctionalOpcode();
- assert(OC == Instruction::ICmp || OC == Instruction::FCmp);
+ assert(*VPI.getFunctionalOpcode() == Instruction::ICmp ||
+ *VPI.getFunctionalOpcode() == Instruction::FCmp);
Value *Op0 = VPI.getOperand(0);
Value *Op1 = VPI.getOperand(1);
More information about the llvm-commits
mailing list