diff options
author | Tim Northover <tnorthover@apple.com> | 2016-04-15 18:17:18 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2016-04-15 18:17:18 +0000 |
commit | 903f81ba184d45341f8f5b8b3227242cc168e535 (patch) | |
tree | ce9f92d8728653aa3e465e394d818795897899b0 /llvm/tools/llvm-readobj/COFFDumper.cpp | |
parent | 9cfd8cea6b8172e32a76a59125f13a6662a18c86 (diff) | |
download | bcm5719-llvm-903f81ba184d45341f8f5b8b3227242cc168e535.tar.gz bcm5719-llvm-903f81ba184d45341f8f5b8b3227242cc168e535.zip |
ARM: don't try to hoist constant RHS out of a division.
Divisions by a constant can be converted into multiplies which are usually
cheaper, but this isn't possible if the constant gets separated (particularly
in loops). Fix this by telling ConstantHoisting that the immediate in a DIV is
cheap.
I considered making the check generic, but neither AArch64 (strangely) nor x86
showed any benefit on the tests I had.
llvm-svn: 266464
Diffstat (limited to 'llvm/tools/llvm-readobj/COFFDumper.cpp')
0 files changed, 0 insertions, 0 deletions