summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-readobj/COFFDumper.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2016-04-15 18:17:18 +0000
committerTim Northover <tnorthover@apple.com>2016-04-15 18:17:18 +0000
commit903f81ba184d45341f8f5b8b3227242cc168e535 (patch)
treece9f92d8728653aa3e465e394d818795897899b0 /llvm/tools/llvm-readobj/COFFDumper.cpp
parent9cfd8cea6b8172e32a76a59125f13a6662a18c86 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud