aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2017-12-04 19:21:58 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2017-12-04 19:21:58 +0000
commitaa92cae14e998670780065f92ae9ed1431d69ff1 (patch)
tree602685dd6d055e7070d5512130067e1ae413b959 /clang/lib/Frontend/CompilerInvocation.cpp
parentfeb8343281cf723081c189d3e661209490f92ac8 (diff)
downloadllvm-aa92cae14e998670780065f92ae9ed1431d69ff1.zip
llvm-aa92cae14e998670780065f92ae9ed1431d69ff1.tar.gz
llvm-aa92cae14e998670780065f92ae9ed1431d69ff1.tar.bz2
[BypassSlowDivision] Improve our handling of divisions by constants
(This reapplies r314253. r314253 was reverted on r314482 because of a correctness regression on P100, but that regression was identified to be something else.) Summary: Don't bail out on constant divisors for divisions that can be narrowed without introducing control flow . This gives us a 32 bit multiply instead of an emulated 64 bit multiply in the generated PTX assembly. Reviewers: jlebar Subscribers: jholewinski, mcrosier, llvm-commits Differential Revision: https://reviews.llvm.org/D38265 llvm-svn: 319677
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions