Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
do not emit silly vectors in SROA
Browse files Browse the repository at this point in the history
  • Loading branch information
kripken committed Oct 6, 2015
1 parent b2f26d1 commit 9837a82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Transforms/Scalar/SROA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3996,8 +3996,8 @@ AllocaInst *SROA::rewritePartition(AllocaInst &AI, AllocaSlices &AS,

bool IsIntegerPromotable = isIntegerWideningViable(P, SliceTy, DL);

VectorType *VecTy =
IsIntegerPromotable ? nullptr : isVectorPromotionViable(P, DL);
VectorType *VecTy = nullptr; // XXX EMSCRIPTEN - never promote to vectors
//IsIntegerPromotable ? nullptr : isVectorPromotionViable(P, DL); // waka
if (VecTy)
SliceTy = VecTy;

Expand Down

0 comments on commit 9837a82

Please sign in to comment.