llvm-6502/lib/Transforms/Scalar
Chris Lattner 6987833651 Implement InstCombine/vec_demanded_elts.ll:test2. This allows us to turn
unsigned test(float f) {
 return _mm_cvtsi128_si32( (__m128i) _mm_set_ss( f*f ));
}

into:

_test:
        movss 4(%esp), %xmm0
        mulss %xmm0, %xmm0
        movd %xmm0, %eax
        ret

instead of:

_test:
        movss 4(%esp), %xmm0
        mulss %xmm0, %xmm0
        xorps %xmm1, %xmm1
        movss %xmm0, %xmm1
        movd %xmm1, %eax
        ret

GCC gets:

_test:
        subl    $28, %esp
        movss   32(%esp), %xmm0
        mulss   %xmm0, %xmm0
        xorps   %xmm1, %xmm1
        movss   %xmm0, %xmm1
        movaps  %xmm1, %xmm0
        movd    %xmm0, 12(%esp)
        movl    12(%esp), %eax
        addl    $28, %esp
        ret


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36020 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 22:29:23 +00:00
..
ADCE.cpp Eliminate use of ctors that take vectors. 2007-02-13 02:10:56 +00:00
BasicBlockPlacement.cpp Apply the VISIBILITY_HIDDEN field to the remaining anonymous classes in 2007-02-05 23:32:05 +00:00
CodeGenPrepare.cpp use an accessor to simplify code. 2007-04-14 00:17:39 +00:00
CondPropagate.cpp Prefer non-virtual calls to ConstantInt::isZero over virtual calls to 2007-03-02 00:28:52 +00:00
ConstantProp.cpp Apply the VISIBILITY_HIDDEN field to the remaining anonymous classes in 2007-02-05 23:32:05 +00:00
CorrelatedExprs.cpp Remove the "isSigned" parameters from ConstantRange. It turns out they 2007-03-01 07:54:15 +00:00
DCE.cpp Apply the VISIBILITY_HIDDEN field to the remaining anonymous classes in 2007-02-05 23:32:05 +00:00
DeadStoreElimination.cpp Apply the VISIBILITY_HIDDEN field to the remaining anonymous classes in 2007-02-05 23:32:05 +00:00
GCSE.cpp Apply the VISIBILITY_HIDDEN field to the remaining anonymous classes in 2007-02-05 23:32:05 +00:00
IndVarSimplify.cpp Now IndVarSimplify is a LoopPass. 2007-03-07 06:39:01 +00:00
InstructionCombining.cpp Implement InstCombine/vec_demanded_elts.ll:test2. This allows us to turn 2007-04-14 22:29:23 +00:00
LICM.cpp Change uses of Function::front to Function::getEntryBlock for readability. 2007-03-22 16:38:57 +00:00
LoopRotation.cpp Check _all_ PHINodes. 2007-04-09 22:20:10 +00:00
LoopStrengthReduce.cpp Now that codegen prepare isn't defeating me, I can finally fix what I set 2007-04-13 20:42:26 +00:00
LoopUnroll.cpp Now LoopUnroll is a LoopPass. 2007-03-07 01:38:05 +00:00
LoopUnswitch.cpp Now LoopUnswitch is a LoopPass. 2007-03-07 00:26:10 +00:00
LowerGC.cpp Eliminate use of ctors that take vectors. 2007-02-13 02:10:56 +00:00
LowerPacked.cpp For PR1195: 2007-02-15 03:39:18 +00:00
Makefile DONT_BUILD_RELINKED is gone and implied by BUILD_ARCHIVE now 2005-10-24 02:26:13 +00:00
PredicateSimplifier.cpp Add support for cast instructions. 2007-04-07 15:48:32 +00:00
Reassociate.cpp Prefer non-virtual calls to ConstantInt::isZero over virtual calls to 2007-03-02 00:28:52 +00:00
Reg2Mem.cpp Apply the VISIBILITY_HIDDEN field to the remaining anonymous classes in 2007-02-05 23:32:05 +00:00
ScalarReplAggregates.cpp Fix Transforms/ScalarRepl/union-pointer.ll 2007-04-11 15:45:25 +00:00
SCCP.cpp minor cleanups 2007-03-04 04:50:21 +00:00
SimplifyCFG.cpp Use a worklist-driven algorithm instead of a recursive one. 2007-04-05 01:27:02 +00:00
TailDuplication.cpp Apply the VISIBILITY_HIDDEN field to the remaining anonymous classes in 2007-02-05 23:32:05 +00:00
TailRecursionElimination.cpp Change uses of Function::front to Function::getEntryBlock for readability. 2007-03-22 16:38:57 +00:00