Skip to content

Commit bf31226

Browse files
committed
[InstCombine] Remove unused variables in InstCombineSelect.cpp (NFC)
llvm-project/llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp:3810:14: error: unused variable 'LHS' [-Werror,-Wunused-variable] 3810 | Value *LHS, *RHS; | ^~~ llvm-project/llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp:3810:20: error: unused variable 'RHS' [-Werror,-Wunused-variable] 3810 | Value *LHS, *RHS; |
1 parent b23f59a commit bf31226

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3807,7 +3807,6 @@ Instruction *InstCombinerImpl::visitSelectInst(SelectInst &SI) {
38073807

38083808
// Is (select B, T, F) a SPF?
38093809
if (CondVal->hasOneUse() && SelType->isIntOrIntVectorTy()) {
3810-
Value *LHS, *RHS;
38113810
if (ICmpInst *Cmp = dyn_cast<ICmpInst>(B))
38123811
if (Value *V = canonicalizeSPF(*Cmp, TrueVal, FalseVal, *this))
38133812
return SelectInst::Create(A, IsAnd ? V : TrueVal,

0 commit comments

Comments
 (0)