Skip to content

Commit 0c23f0c

Browse files
committed
reordered shouldMoveOutofRegion condition checks for LICM
1 parent 872d60e commit 0c23f0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Transforms/Utils/LoopInvariantCodeMotionUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ size_t mlir::moveLoopInvariantCode(LoopLikeOpInterface loopLike) {
110110
return loopLike.isDefinedOutsideOfLoop(value);
111111
},
112112
[&](Operation *op, Region *) {
113-
return isMemoryEffectMovable(op) && isSpeculatable(op);
113+
return isSpeculatable(op) && isMemoryEffectMovable(op);
114114
},
115115
[&](Operation *op, Region *) { loopLike.moveOutOfLoop(op); });
116116
}

0 commit comments

Comments
 (0)