Skip to content

Commit

Permalink
removing null type remove optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
vkhristenko committed Oct 18, 2017
1 parent 8392ae6 commit d3a4ff2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ package object optimizations {
case Some(tpe) => x match {
// for the array type check => iterate thru the children
case xx: SRVector => {
println(s"xx.name = ${xx.name}")
SRVector(xx.name, xx.b,
iterate(xx.t, Some(tpe.asInstanceOf[ArrayType].elementType)),
xx.split, xx.isTop)
Expand Down Expand Up @@ -210,7 +209,6 @@ package object optimizations {
// this composite is not splittable
if (x.members.size == 0) x
else {
println(s"x.name = ${x.name}")
SRComposite(x.name, x.b,
x.members.map {case m => iterate(m,
tpe.asInstanceOf[StructType].fields.find
Expand All @@ -235,7 +233,7 @@ package object optimizations {

val basicPasses: Seq[OptimizationPass] = (Nil :+ RemoveEmptyRowPass
:+ FlattenOutBasePass
:+ SoftRemoveNullTypePass :+ RemoveEmptyRowPass //\
// :+ SoftRemoveNullTypePass :+ RemoveEmptyRowPass //\
)
// :+ FlattenOutBasePass
}

0 comments on commit d3a4ff2

Please sign in to comment.