aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorMark Heffernan <meheff@google.com>2015-08-11 22:16:34 +0000
committerMark Heffernan <meheff@google.com>2015-08-11 22:16:34 +0000
commit438ffe5eac02270208529d29330eef76991af70f (patch)
tree136d17171c98fd25ffefd3822289642b765c442f /llvm/lib/CodeGen/MachineFunction.cpp
parent42b0148a49586d422d6600b4d4759f483d3b0958 (diff)
downloadllvm-438ffe5eac02270208529d29330eef76991af70f.zip
llvm-438ffe5eac02270208529d29330eef76991af70f.tar.gz
llvm-438ffe5eac02270208529d29330eef76991af70f.tar.bz2
Use 32-bit divides instead of 64-bit divides where possible.
For NVPTX, try to use 32-bit division instead of 64-bit division when the dividend and divisor fit in 32 bits. This speeds up some internal benchmarks significantly. The underlying reason is that many index computations are carried out in 64-bits but never actually exceed the capacity of a 32-bit word. llvm-svn: 244684
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions