llvm-6502/lib/CodeGen/SelectionDAG
Richard Sandiford 8c20158fb0 [SystemZ] Use SRST to optimize memchr
SystemZTargetLowering::emitStringWrapper() previously loaded the character
into R0 before the loop and made R0 live on entry.  I'd forgotten that
allocatable registers weren't allowed to be live across blocks at this stage,
and it confused LiveVariables enough to cause a miscompilation of f3 in
memchr-02.ll.

This patch instead loads R0 in the loop and leaves LICM to hoist it
after RA.  This is actually what I'd tried originally, but I went for
the manual optimisation after noticing that R0 often wasn't being hoisted.
This bug forced me to go back and look at why, now fixed as r188774.

We should also try to optimize null checks so that they test the CC result
of the SRST directly.  The select between null and the SRST GPR result could
then usually be deleted as dead.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188779 91177308-0d34-0410-b5e6-96231b3b80d8
2013-08-20 09:38:48 +00:00
..
CMakeLists.txt
DAGCombiner.cpp Replace getValueType().getSimpleVT() with getSimpleValueType(). 2013-08-15 02:44:19 +00:00
FastISel.cpp
FunctionLoweringInfo.cpp
InstrEmitter.cpp
InstrEmitter.h
LegalizeDAG.cpp Replace getValueType().getSimpleVT() with getSimpleValueType(). 2013-08-15 02:44:19 +00:00
LegalizeFloatTypes.cpp Add ExpandFloatOp_FCOPYSIGN to handle ppcf128-related expansions 2013-08-19 06:55:37 +00:00
LegalizeIntegerTypes.cpp Update makeLibCall to return both the call and the chain associated with the libcall instead of just the call. This allows us to specify libcalls that return void. 2013-08-13 17:54:56 +00:00
LegalizeTypes.cpp Update makeLibCall to return both the call and the chain associated with the libcall instead of just the call. This allows us to specify libcalls that return void. 2013-08-13 17:54:56 +00:00
LegalizeTypes.h Improve the widening of integral binary vector operations 2013-08-19 20:01:35 +00:00
LegalizeTypesGeneric.cpp
LegalizeVectorOps.cpp Add a llvm.copysign intrinsic 2013-08-19 23:35:46 +00:00
LegalizeVectorTypes.cpp Add a llvm.copysign intrinsic 2013-08-19 23:35:46 +00:00
LLVMBuild.txt
Makefile
ResourcePriorityQueue.cpp
ScheduleDAGFast.cpp
ScheduleDAGRRList.cpp
ScheduleDAGSDNodes.cpp
ScheduleDAGSDNodes.h
ScheduleDAGVLIW.cpp
SDNodeDbgValue.h
SelectionDAG.cpp Replace getValueType().getSimpleVT() with getSimpleValueType(). 2013-08-15 02:44:19 +00:00
SelectionDAGBuilder.cpp [SystemZ] Use SRST to optimize memchr 2013-08-20 09:38:48 +00:00
SelectionDAGBuilder.h [SystemZ] Use SRST to optimize memchr 2013-08-20 09:38:48 +00:00
SelectionDAGDumper.cpp
SelectionDAGISel.cpp Remove unused variables that crept in. 2013-08-20 07:17:27 +00:00
SelectionDAGPrinter.cpp
TargetLowering.cpp Update makeLibCall to return both the call and the chain associated with the libcall instead of just the call. This allows us to specify libcalls that return void. 2013-08-13 17:54:56 +00:00
TargetSelectionDAGInfo.cpp