OSDN Git Service

[Hexagon] Improve code generation for 32x32-bit multiplication
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Tue, 30 May 2017 17:47:51 +0000 (17:47 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Tue, 30 May 2017 17:47:51 +0000 (17:47 +0000)
commit79654737d7de8041d770d8dc0c148f8b62c6c21b
tree0ce57702585aa1ecb32fcf2f201a0616b2f0b144
parent825457abaab5c83e83b836a871968126821edaa4
[Hexagon] Improve code generation for 32x32-bit multiplication

For multiplications of 64-bit values (giving 64-bit result), detect
cases where the arguments are sign-extended 32-bit values, on a per-
operand basis. This will allow few patterns to match a wider variety
of combinations in which extensions can occur.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304223 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
lib/Target/Hexagon/HexagonISelLowering.cpp
lib/Target/Hexagon/HexagonPatterns.td
test/CodeGen/Hexagon/mul64-sext.ll [new file with mode: 0644]