Skip to content

Commit 5a4a6a5

Browse files
committed
no return value
1 parent c0c63f3 commit 5a4a6a5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ class LowerMatrixIntrinsics {
10871087
else if (CallInst *CInst = dyn_cast<CallInst>(Inst))
10881088
VisitCallInst(CInst);
10891089
else if (auto *Select = dyn_cast<SelectInst>(Inst))
1090-
Changed |= VisitSelectInst(Select, SI);
1090+
VisitSelectInst(Select, SI);
10911091
else if (match(Inst, m_Load(m_Value(Op1))))
10921092
VisitLoad(cast<LoadInst>(Inst), SI, Op1, Builder);
10931093
else if (match(Inst, m_Store(m_Value(Op1), m_Value(Op2))))
@@ -2200,7 +2200,7 @@ class LowerMatrixIntrinsics {
22002200
}
22012201

22022202
/// Lower selects.
2203-
bool VisitSelectInst(SelectInst *Inst, const ShapeInfo &Shape) {
2203+
void VisitSelectInst(SelectInst *Inst, const ShapeInfo &Shape) {
22042204
Value *Cond = Inst->getOperand(0);
22052205
Value *OpA = Inst->getOperand(1);
22062206
Value *OpB = Inst->getOperand(2);
@@ -2228,7 +2228,6 @@ class LowerMatrixIntrinsics {
22282228
Result.addNumComputeOps(getNumOps(Result.getVectorTy()) *
22292229
Result.getNumVectors()),
22302230
Builder);
2231-
return true;
22322231
}
22332232

22342233
/// Helper to linearize a matrix expression tree into a string. Currently

0 commit comments

Comments
 (0)