GlobalISel: extend add widening to SUB, MUL, OR, AND and XOR.
authorTim Northover <tnorthover@apple.com>
Thu, 4 Aug 2016 21:39:49 +0000 (21:39 +0000)
committerTim Northover <tnorthover@apple.com>
Thu, 4 Aug 2016 21:39:49 +0000 (21:39 +0000)
commit61c16142b4d52b0e62db1e39d21093a56cd5f886
treed0d724026b74e6bbbfd471eb469855271677025a
parent1cfa919b3d796b99a8fe0c3dfeb9999b3f48fd81
GlobalISel: extend add widening to SUB, MUL, OR, AND and XOR.

These are the operations that are trivially identical. Division is omitted for
now because you need to use the correct sign/zero extension.

llvm-svn: 277775
llvm/lib/CodeGen/GlobalISel/MachineLegalizeHelper.cpp
llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp
llvm/test/CodeGen/AArch64/GlobalISel/legalize-and.mir [new file with mode: 0644]
llvm/test/CodeGen/AArch64/GlobalISel/legalize-mul.mir [new file with mode: 0644]
llvm/test/CodeGen/AArch64/GlobalISel/legalize-or.mir [new file with mode: 0644]
llvm/test/CodeGen/AArch64/GlobalISel/legalize-sub.mir [new file with mode: 0644]
llvm/test/CodeGen/AArch64/GlobalISel/legalize-xor.mir [new file with mode: 0644]