aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ExpandVectorPredication.cpp
diff options
context:
space:
mode:
authorFraser Cormack <fraser@codeplay.com>2022-10-05 10:32:44 +0100
committerFraser Cormack <fraser@codeplay.com>2022-10-05 10:33:07 +0100
commit08497a785bfb790ff966c8d76773fa60ccb4d03b (patch)
tree69c1ebd37dc5ab4520967aa4eb2ab4482901163b /llvm/lib/CodeGen/ExpandVectorPredication.cpp
parentc21e57156c25734df44bb4893b9fc31dfc7de56d (diff)
downloadllvm-08497a785bfb790ff966c8d76773fa60ccb4d03b.zip
llvm-08497a785bfb790ff966c8d76773fa60ccb4d03b.tar.gz
llvm-08497a785bfb790ff966c8d76773fa60ccb4d03b.tar.bz2
[VP] Fix unused variable in release configurations
Diffstat (limited to 'llvm/lib/CodeGen/ExpandVectorPredication.cpp')
-rw-r--r--llvm/lib/CodeGen/ExpandVectorPredication.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/ExpandVectorPredication.cpp b/llvm/lib/CodeGen/ExpandVectorPredication.cpp
index 6fdf3784..1a3a060 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);