PR4795: Remove EEVT::isFP, isInt and isVec types used by TableGen's type
authorBob Wilson <bob.wilson@apple.com>
Sat, 29 Aug 2009 05:53:25 +0000 (05:53 +0000)
committerBob Wilson <bob.wilson@apple.com>
Sat, 29 Aug 2009 05:53:25 +0000 (05:53 +0000)
commitcdfa01bf0fd4fd9228e8cf32eae9205d067e147a
tree7f6fb1bc27e09199241004cee240da39f60d633a
parent6fefcebc4f92b944664b7b26042bc21e57aefe43
PR4795: Remove EEVT::isFP, isInt and isVec types used by TableGen's type
inferencing.  As far as I can tell, these are equivalent to the existing
MVT::fAny, iAny and vAny types, and having both of them makes it harder
to reason about and modify the type inferencing code.

The specific problem in PR4795 occurs when updating a vAny type to be fAny
or iAny, or vice versa.  Both iAny and fAny include vector types -- they
intersect with the set of types represented by vAny.  When merging them,
choose fAny/iAny to represent the intersection.  This is not perfect, since
fAny/iAny also include scalar types, but it is good enough for TableGen's
type inferencing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80423 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/CodeGenDAGPatterns.cpp
utils/TableGen/CodeGenDAGPatterns.h