Emit pragma nounroll for llvm.loop.unroll.count=1 (#pragma unroll 1).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM with a nit.
llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp | ||
---|---|---|
432–436 | This all can be folded directly into |
This all can be folded directly into
if (mdconst::extract<ConstantInt>(UnrollCountMD->getOperand(1))->getZExtValue() == 1) return true;