[PATCH] [NVPTX] Emit .pragma "nounroll" for loops marked with nounroll
jingyue at google.com
Sat Jan 17 23:43:19 PST 2015
Hi jholewinski, meheff, eliben,
CUDA driver can unroll loops when jit-compiling PTX. To prevent CUDA
driver from unrolling a loop marked with llvm.loop.unroll.disable is not
unrolled by CUDA driver, we need to emit .pragma "nounroll" at the
header of that loop.
This patch also extracts getting unroll metadata from loop ID metadata
into a shared helper function.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 8802 bytes
Desc: not available
More information about the llvm-commits