aboutsummaryrefslogtreecommitdiff
path: root/lib/CompilerDriver/CompilationGraph.cpp
diff options
context:
space:
mode:
authorKen Dyck <ken.dyck@onsemi.com>2009-12-17 20:09:43 +0000
committerKen Dyck <ken.dyck@onsemi.com>2009-12-17 20:09:43 +0000
commitbceddbdc919fc2ca7bc8c3911586ba93367686f0 (patch)
treed75c3219a254bd51439b8485d7e17ef93faeabf3 /lib/CompilerDriver/CompilationGraph.cpp
parent551dec592f602258e3ff64cb613f23312e0f7610 (diff)
Introduce EVT::getHalfSizedIntegerVT() for use in ExpandUnalignedStore() in
LegalizeDAG.cpp. Unlike the code it replaces, which simply decrements the simple type by one, getHalfSizedIntegerVT() searches for the smallest simple integer type that is at least half the size of the type it is called on. This approach has the advantage that it will continue working if a new value type (such as i24) is added to MVT. Also, in preparation for new value types, remove the assertions that non-power-of-2 8-bit-mutiple types are Extended when legalizing extload and truncstore operations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91614 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CompilerDriver/CompilationGraph.cpp')
0 files changed, 0 insertions, 0 deletions