Optimize ZERO_EXTEND and SIGN_EXTEND in both SelectionDAG Builder and type
authorJiangning Liu <jiangning.liu@arm.com>
Wed, 20 Aug 2014 12:05:15 +0000 (12:05 +0000)
committerJiangning Liu <jiangning.liu@arm.com>
Wed, 20 Aug 2014 12:05:15 +0000 (12:05 +0000)
commite04455d72be8531c6c49899d6172f83fdd4839c9
tree3d8d367bb0a3b3d01706e7141c5147d5f257b063
parentaadaac228dcaa0c44cba743192abfa28e460c10c
Optimize ZERO_EXTEND and SIGN_EXTEND in both SelectionDAG Builder and type
legalization stage. With those two optimizations, fewer signed/zero extension
instructions can be inserted, and then we can expose more opportunities to
Machine CSE pass in back-end.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216066 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
test/CodeGen/AArch64/atomic-ops.ll
test/CodeGen/AArch64/rm_redundant_cmp.ll [new file with mode: 0644]