Chris Lattner e2cc1ad230 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
2009-10-15 04:13:44 +00:00
..
2009-10-06 19:45:38 +00:00
2009-10-14 17:29:00 +00:00
2009-10-14 17:29:00 +00:00
2009-10-14 17:29:00 +00:00
2009-09-02 06:15:37 +00:00