diff options
author | Chris Lattner <sabre@nondot.org> | 2009-10-15 04:13:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-10-15 04:13:44 +0000 |
commit | dd1f68a10c1cf55c34fd0c1c9ef32a33e09c6ce1 (patch) | |
tree | b5c77c2616de2420200cd3c6f2227051e7561f36 /clang/lib/Driver/Tools.cpp | |
parent | 9f49103ece4f88843d892e793fdd45a6ed10ee83 (diff) | |
download | bcm5719-llvm-dd1f68a10c1cf55c34fd0c1c9ef32a33e09c6ce1.tar.gz bcm5719-llvm-dd1f68a10c1cf55c34fd0c1c9ef32a33e09c6ce1.zip |
don't bother calling ConstantFoldInstruction unless there is a use of the
instruction (which disqualifies stores, unreachable, etc) and at least the
first operand is a constant. This filters out a lot of obvious cases that
can't be folded. Also, switch the IRBuilder to a TargetFolder, which tries
harder.
llvm-svn: 84170
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
0 files changed, 0 insertions, 0 deletions