summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
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
commit13a3af19318cd010aa1cfc276298e2772240594a (patch)
treed0f6fe78a09b26eeb0dc4e1eca82102b64e40b1a /clang/lib/Frontend/CompilerInvocation.cpp
parent8f6bdf69a21455d04d1fe11d92ffba7565faa048 (diff)
downloadbcm5719-llvm-13a3af19318cd010aa1cfc276298e2772240594a.tar.gz
bcm5719-llvm-13a3af19318cd010aa1cfc276298e2772240594a.zip
[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 llvm-svn: 297648
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud