llvm-6502/lib/CodeGen/SelectionDAG
Duncan Sands a29c13086a When promoting the result of fp_to_uint/fp_to_sint,
inform the optimizers that the result must be zero/
sign extended from the smaller type.  For example,
if a fp to unsigned i16 is promoted to fp to i32,
then we are allowed to assume that the extra 16 bits
are zero (because the result of fp to i16 is undefined
if the result does not fit in an i16).  This is
quite aggressive, but should help the optimizers
produce better code.  This requires correcting a
test which thought that fp_to_uint is some kind
of truncation, which it is not: in the testcase
(which does fp to i1), either the fp value converts
to 0 or 1 or the result is undefined, which is
quite different to truncation.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58991 91177308-0d34-0410-b5e6-96231b3b80d8
2008-11-10 17:28:30 +00:00
..
CallingConvLower.cpp
CMakeLists.txt
DAGCombiner.cpp Added support for the following definition of shufflevector 2008-11-10 04:46:22 +00:00
FastISel.cpp Emit label for llvm.dbg.func.start of the inlined function. 2008-11-06 21:28:20 +00:00
LegalizeDAG.cpp Added support for the following definition of shufflevector 2008-11-10 04:46:22 +00:00
LegalizeFloatTypes.cpp Fix unsigned->ppcf128 conversion. 2008-11-07 19:11:43 +00:00
LegalizeIntegerTypes.cpp When promoting the result of fp_to_uint/fp_to_sint, 2008-11-10 17:28:30 +00:00
LegalizeTypes.cpp Add a bunch of libcalls for ppcf128 that were somehow 2008-10-31 14:06:52 +00:00
LegalizeTypes.h Added support for the following definition of shufflevector 2008-11-10 04:46:22 +00:00
LegalizeTypesGeneric.cpp Fix PR2977: LegalizeTypes support for expanding 2008-10-29 14:25:28 +00:00
LegalizeVectorTypes.cpp Added support for the following definition of shufflevector 2008-11-10 04:46:22 +00:00
Makefile
ScheduleDAG.cpp
ScheduleDAGEmit.cpp
ScheduleDAGFast.cpp
ScheduleDAGList.cpp
ScheduleDAGRRList.cpp Remove some unused virtual function bodies. 2008-10-31 19:06:33 +00:00
SelectionDAG.cpp Added support for the following definition of shufflevector 2008-11-10 04:46:22 +00:00
SelectionDAGBuild.cpp Added support for the following definition of shufflevector 2008-11-10 04:46:22 +00:00
SelectionDAGBuild.h
SelectionDAGISel.cpp Take Chris' suggestion and define EnableFastISelVerbose and 2008-10-28 20:35:31 +00:00
SelectionDAGPrinter.cpp Fix bogus comparison of "const char *" with c-string literal. Use strcmp instead. 2008-10-27 22:43:07 +00:00
TargetLowering.cpp Really fix testb optimization on big-endian. 2008-11-10 07:16:42 +00:00