summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/IfConversion.cpp
diff options
context:
space:
mode:
authorJingyue Wu <jingyue@google.com>2015-02-01 02:27:45 +0000
committerJingyue Wu <jingyue@google.com>2015-02-01 02:27:45 +0000
commit0220df0dfd285c80c1d80658bf0d7b2914ced469 (patch)
treeac7e5b3aa14e2c9374f99f31302aff1fdbbd6bb6 /llvm/lib/CodeGen/IfConversion.cpp
parent152ac396db5b6c156816979b1590702088f22518 (diff)
downloadbcm5719-llvm-0220df0dfd285c80c1d80658bf0d7b2914ced469.tar.gz
bcm5719-llvm-0220df0dfd285c80c1d80658bf0d7b2914ced469.zip
[NVPTX] Emit .pragma "nounroll" for loops marked with nounroll
Summary: 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. Test Plan: test/CodeGen/NVPTX/nounroll.ll Reviewers: eliben, meheff, jholewinski Reviewed By: jholewinski Subscribers: jholewinski, llvm-commits Differential Revision: http://reviews.llvm.org/D7041 llvm-svn: 227703
Diffstat (limited to 'llvm/lib/CodeGen/IfConversion.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud