summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-10-15 04:13:44 +0000
committerChris Lattner <sabre@nondot.org>2009-10-15 04:13:44 +0000
commitdd1f68a10c1cf55c34fd0c1c9ef32a33e09c6ce1 (patch)
treeb5c77c2616de2420200cd3c6f2227051e7561f36 /clang/lib/Driver/Tools.cpp
parent9f49103ece4f88843d892e793fdd45a6ed10ee83 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud