llvm-6502/test
Hal Finkel 4e703f82f2 [PowerPC] Add a DAGToDAG peephole to remove unnecessary zero-exts
On PPC64, we end up with lots of i32 -> i64 zero extensions, not only from all
of the usual places, but also from the ABI, which specifies that values passed
are zero extended. Almost all 32-bit PPC instructions in PPC64 mode are defined
to do *something* to the higher-order bits, and for some instructions, that
action clears those bits (thus providing a zero-extended result). This is
especially common after rotate-and-mask instructions. Adding an additional
instruction to zero-extend the results of these instructions is unnecessary.

This PPCISelDAGToDAG peephole optimization examines these zero-extensions, and
looks back through their operands to see if all instructions will implicitly
zero extend their results. If so, we convert these instructions to their 64-bit
variants (which is an internal change only, the actual encoding of these
instructions is the same as the original 32-bit ones) and remove the
unnecessary zero-extension (changing where the INSERT_SUBREG instructions are
to make everything internally consistent).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224169 91177308-0d34-0410-b5e6-96231b3b80d8
2014-12-12 23:59:36 +00:00
..
Analysis BFI: Saturate when combining edges to a successor 2014-12-05 19:13:42 +00:00
Assembler AsmParser: Don't crash on an ill-formed MDNodeVector 2014-12-11 20:51:54 +00:00
Bindings
Bitcode Bitcode: Use unsigned char to record MDStrings 2014-12-11 23:34:30 +00:00
BugPoint
CodeGen [PowerPC] Add a DAGToDAG peephole to remove unnecessary zero-exts 2014-12-12 23:59:36 +00:00
DebugInfo A fix for PR21176. 2014-12-12 05:11:47 +00:00
ExecutionEngine
Feature Fix LLVMContext to match what MDKind names that the LL parser permits. Fixes PR21799! 2014-12-11 02:10:28 +00:00
FileCheck
Instrumentation [ASan] Change fake stack and local variables handling. 2014-12-11 21:53:03 +00:00
Integer
JitListener
Linker IR: Canonicalize metadata formatting, NFC 2014-12-11 06:32:29 +00:00
LTO Lazily link GlobalVariables and GlobalAliases. 2014-12-08 18:45:16 +00:00
MC [Hexagon] Adding double word add/min/minu/max/maxu instructions and tests. 2014-12-12 21:29:25 +00:00
Object
Other
SymbolRewriter
TableGen
tools Relax debug-map-parsing.test error message check for Windows 2014-12-12 18:52:07 +00:00
Transforms ValueTracking: Don't recurse too deeply in computeKnownBitsFromAssume 2014-12-12 23:59:29 +00:00
Unit
Verifier IR: Canonicalize metadata formatting, NFC 2014-12-11 06:32:29 +00:00
YAMLParser
.clang-format
CMakeLists.txt Revert r224149, llvm-dsymutil was already here. 2014-12-12 21:25:07 +00:00
lit.cfg Initial dsymutil tool commit. 2014-12-12 17:31:24 +00:00
lit.site.cfg.in
Makefile
Makefile.tests
TestRunner.sh