summaryrefslogtreecommitdiff
path: root/tools/llvm-link
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-03-13 17:37:14 +0000
committerCraig Topper <craig.topper@gmail.com>2017-03-13 17:37:14 +0000
commit27a7060a361baaf0ad3d123c5f21b79f7a840acd (patch)
treece0856326c8241af89b7e89793b6b8cae35e80c6 /tools/llvm-link
parent8d6966f7002d6aa866a582a3b56d48bb0f78e6ae (diff)
[SelectionDAG] Enhance SDTCisSameNumEltsAs to work with scalar types and use it on extend/trunc/round operations.
Currently we don't enforce that ISD::ANY_EXTEND, ZERO_EXTEND, SIGN_EXTEND, TRUNC, FP_ROUND, FP_EXTEND have the same number of elements(including scalar) between their input and output. Though we have them documented as such. Up until a few months ago x86 created nodes that violated this rule. That's all been fixed now, and we should enforce the rule going forward. In order to do this we need to allow SDTCisSameNumEltsAs to support scalar types and not enforce being a vector. If one type is scalar we will force the other type to also be scalar. Differential Revision: https://reviews.llvm.org/D30878 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297648 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-link')
0 files changed, 0 insertions, 0 deletions