aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineTraceMetrics.cpp
diff options
context:
space:
mode:
authorJuergen Ributzka <juergen@apple.com>2014-04-12 02:36:28 +0000
committerJuergen Ributzka <juergen@apple.com>2014-04-12 02:36:28 +0000
commit6e17aa45a392fa998fe9316267dfd9eb82eeea99 (patch)
tree8b98bf84523a7e6e637365a785b26dd050da1176 /llvm/lib/CodeGen/MachineTraceMetrics.cpp
parenta8c45c9f88c1c6de27c21f217ffdcdabf229cf45 (diff)
downloadllvm-6e17aa45a392fa998fe9316267dfd9eb82eeea99.zip
llvm-6e17aa45a392fa998fe9316267dfd9eb82eeea99.tar.gz
llvm-6e17aa45a392fa998fe9316267dfd9eb82eeea99.tar.bz2
[ARM64] Fix the cost model for cheap large constants.
Originally the cost model would give up for large constants and just return the maximum cost. This is not what we want for constant hoisting, because some of these constants are large in bitwidth, but are still cheap to materialize. This commit fixes the cost model to either return TCC_Free if the cost cannot be determined, or accurately calculate the cost even for large constants (bitwidth > 128). This fixes <rdar://problem/16591573>. llvm-svn: 206100
Diffstat (limited to 'llvm/lib/CodeGen/MachineTraceMetrics.cpp')
0 files changed, 0 insertions, 0 deletions