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 d872350 commit eedd1ceCopy full SHA for eedd1ce
lib/Conversion/TritonGPUToLLVM/Utility.cpp
@@ -296,10 +296,9 @@ Value getThreadId(OpBuilder &rewriter, Location loc) {
296
tid = rewriter.create<arith::SubIOp>(loc, tid, b.i32_val(*startId));
297
}
298
299
- if (llvm::isPowerOf2_32(upperBound)) {
300
- // help LLVM's known bits analysis:
301
- tid = b.and_(tid, b.i32_val(upperBound - 1));
302
- }
+ assert(llvm::isPowerOf2_32(upperBound));
+ // help LLVM's known bits analysis:
+ tid = b.and_(tid, b.i32_val(upperBound - 1));
303
304
return tid;
305
0 commit comments