Enable partial and runtime loop unrolling for NVPTX.
authorMark Heffernan <meheff@google.com>
Mon, 13 Jul 2015 18:33:21 +0000 (18:33 +0000)
committerMark Heffernan <meheff@google.com>
Mon, 13 Jul 2015 18:33:21 +0000 (18:33 +0000)
commit9be1720729f9a3d2582c2530718f516494a021c4
tree99063b856f6328efe5eaa2dc0a64c8280d2979f8
parent8a9e01d606ce9954fcdc431ce3be3f7ae2411f38
Enable partial and runtime loop unrolling for NVPTX.

Enable partial and runtime loop unrolling for NVPTX backend via
TTI::UnrollingPreferences with a small threshold. This partially unrolls
small loops which are often unrolled by the PTX to SASS compiler
and unrolling earlier can be beneficial.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242049 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/NVPTX/NVPTXTargetTransformInfo.cpp
lib/Target/NVPTX/NVPTXTargetTransformInfo.h