We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 872d60e commit 0c23f0cCopy full SHA for 0c23f0c
mlir/lib/Transforms/Utils/LoopInvariantCodeMotionUtils.cpp
@@ -110,7 +110,7 @@ size_t mlir::moveLoopInvariantCode(LoopLikeOpInterface loopLike) {
110
return loopLike.isDefinedOutsideOfLoop(value);
111
},
112
[&](Operation *op, Region *) {
113
- return isMemoryEffectMovable(op) && isSpeculatable(op);
+ return isSpeculatable(op) && isMemoryEffectMovable(op);
114
115
[&](Operation *op, Region *) { loopLike.moveOutOfLoop(op); });
116
}
0 commit comments