diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-10 02:39:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-10 02:39:31 +0000 |
commit | 49d2c9764d5a8de8308648bc228794e610f323b3 (patch) | |
tree | d396f16a5dac3cc557410c10e72f6ce060659a3d /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | f0af17dab3e75485105a265abd829d8257664329 (diff) | |
download | bcm5719-llvm-49d2c9764d5a8de8308648bc228794e610f323b3.tar.gz bcm5719-llvm-49d2c9764d5a8de8308648bc228794e610f323b3.zip |
two changes:
1) don't try to optimize a sext or zext that is only used by a trunc, let
the trunc get optimized first. This avoids some pointless effort in
some common cases since instcombine scans down a block in the first pass.
2) Change the cost model for zext elimination to consider an 'and' cheaper
than a zext. This allows us to do it more aggressively, and for the next
patch to simplify the code quite a bit.
llvm-svn: 93097
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions