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 | e2cc1ad2306599fcff8d1bb9ce517cf0c632f602 (patch) | |
tree | f30b1999b96173e030caba82befd7652c70a6554 /lib/Target/PIC16/PIC16TargetObjectFile.cpp | |
parent | 22c031296ce91cdabb193a203b06b339ef500f4b (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84170 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PIC16/PIC16TargetObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions