diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-03-01 22:00:11 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-03-01 22:00:11 +0000 |
commit | 73736df88ba5a35bf172191c2dea5294306fce04 (patch) | |
tree | 0221c5dba0066c0c908b0102d0fe8a691e21d639 | |
parent | adc5347b54fa71368b7b93f003993ad90da99135 (diff) |
Remove the optimize for code size limitation on r67917. Optimize 64-bit imul by constants into leas + shl regardless if optimizing for code size. The size saving from using imulq isn't worth it. Also, the lea and shl instructions may expose further optimization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97507 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index b0a1bff04c..8cfc1b2841 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -9233,10 +9233,6 @@ static SDValue PerformANDCombine(SDNode *N, SelectionDAG &DAG, /// LEA + SHL, LEA + LEA. static SDValue PerformMulCombine(SDNode *N, SelectionDAG &DAG, TargetLowering::DAGCombinerInfo &DCI) { - if (DAG.getMachineFunction(). - getFunction()->hasFnAttr(Attribute::OptimizeForSize)) - return SDValue(); - if (DCI.isBeforeLegalize() || DCI.isCalledByLegalizer()) return SDValue(); |