Previously, arith.constant, arith.muli and affine.min were supported when deriving upper loop bounds when converting parallel loops to GPU.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
@csigg, the code you've added here yields a warning:
459fd3fb342d5 mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp (Christian Sigg 2022-08-22 10:39:49 +0200 347) if (lhs.value() < 0 != rhs.value() < 0)
... In function ‘mlir::Value deriveStaticUpperBound(mlir::Value, mlir::PatternRewriter&)’: ...mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp:347:25: warning: suggest parentheses around comparison in operand of ‘!=’ [-Wparentheses] 347 | if (lhs.value() < 0 != rhs.value() < 0) | ~~~~~~~~~~~~^~~~
with
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0.