llvm-6502/include/llvm
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
..
ADT Make sure that pop_back_val() result is used. 2013-08-19 22:12:00 +00:00
Analysis Fix an oversight in isPotentiallyReachable where we wouldn't do any CFG-walking 2013-08-13 00:03:47 +00:00
Assembly
Bitcode Make .bc en/decoding of AttrKind stable 2013-07-26 04:16:55 +00:00
CodeGen [stackprotector] Refactor out the end of isInTailCallPosition into the function returnTypeIsEligibleForTailCall. 2013-08-20 08:36:50 +00:00
Config Remove all checking for the various terminfo headers (term.h and 2013-08-12 10:40:11 +00:00
DebugInfo Add LLVM-style RTTI to DIContext/DWARFContext classes 2013-08-06 10:32:39 +00:00
ExecutionEngine
IR [mips][msa] Added insve 2013-08-20 09:22:54 +00:00
IRReader
MC Support C99 hexadecimal floating-point literals in assembly 2013-08-14 14:23:31 +00:00
Object [Object/ELF] sh_type is not a bitfield. Fixes RuntimeDyld test failure on ARM. 2013-08-12 22:59:14 +00:00
Option Options: Add new option kind that consumes remaining arguments 2013-08-13 21:09:50 +00:00
Support Add definition of __warn_unused_result__ attribute. It will be used in the 2013-08-19 19:02:33 +00:00
TableGen [typo] An LLVM. 2013-08-16 23:30:19 +00:00
Target [SystemZ] Use SRST to optimize memchr 2013-08-20 09:38:48 +00:00
Transforms Fix assert with GEP ptr vector indexing structs 2013-08-19 21:43:16 +00:00
AutoUpgrade.h Remove trailing whitespace, fix file path in comment 2013-07-20 17:46:00 +00:00
CMakeLists.txt
DebugInfo.h DebugInfo: Allow the addition of other (such as static data) members to a record type after construction 2013-08-16 20:42:14 +00:00
DIBuilder.h DebugInfo: Allow the addition of other (such as static data) members to a record type after construction 2013-08-16 20:42:14 +00:00
GVMaterializer.h
InitializePasses.h DataFlowSanitizer; LLVM changes. 2013-08-07 22:47:18 +00:00
InstVisitor.h
LinkAllIR.h
LinkAllPasses.h Remove the simplify-libcalls pass (finally) 2013-06-20 19:48:07 +00:00
Linker.h
Pass.h
PassAnalysisSupport.h
PassManager.h
PassManagers.h Use a DenseMap instead of a std::map for AnalysisID -> Pass* maps. This reduces the pass-manager overhead from FPPassManager::runOnFunction() by about 10%. 2013-02-26 01:31:59 +00:00
PassRegistry.h
PassSupport.h