@@ -2559,7 +2559,7 @@ convertOmpWsloop(Operation &opInst, llvm::IRBuilderBase &builder,
25592559
25602560 // Initialize linear variables and linear step
25612561 LinearClauseProcessor linearClauseProcessor;
2562- if (wsloopOp.getLinearVars ().size ()) {
2562+ if (! wsloopOp.getLinearVars ().empty ()) {
25632563 for (mlir::Value linearVar : wsloopOp.getLinearVars ())
25642564 linearClauseProcessor.createLinearVar (builder, moduleTranslation,
25652565 linearVar);
@@ -2576,7 +2576,7 @@ convertOmpWsloop(Operation &opInst, llvm::IRBuilderBase &builder,
25762576 llvm::CanonicalLoopInfo *loopInfo = findCurrentLoopInfo (moduleTranslation);
25772577
25782578 // Emit Initialization and Update IR for linear variables
2579- if (wsloopOp.getLinearVars ().size ()) {
2579+ if (! wsloopOp.getLinearVars ().empty ()) {
25802580 llvm::OpenMPIRBuilder::InsertPointOrErrorTy afterBarrierIP =
25812581 linearClauseProcessor.initLinearVar (builder, moduleTranslation,
25822582 loopInfo->getPreheader ());
@@ -2602,7 +2602,7 @@ convertOmpWsloop(Operation &opInst, llvm::IRBuilderBase &builder,
26022602 return failure ();
26032603
26042604 // Emit finalization and in-place rewrites for linear vars.
2605- if (wsloopOp.getLinearVars ().size ()) {
2605+ if (! wsloopOp.getLinearVars ().empty ()) {
26062606 llvm::OpenMPIRBuilder::InsertPointTy oldIP = builder.saveIP ();
26072607 assert (loopInfo->getLastIter () &&
26082608 " `lastiter` in CanonicalLoopInfo is nullptr" );
0 commit comments