Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit af0684e

Browse files
committed
Revert some fastcomp changes
1 parent 5d4025c commit af0684e

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

lib/Transforms/InstCombine/InstCombineVectorOps.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,17 +1249,7 @@ Instruction *InstCombiner::visitShuffleVectorInst(ShuffleVectorInst &SVI) {
12491249

12501250
// If the result mask is equal to one of the original shuffle masks,
12511251
// or is a splat, do the replacement.
1252-
//
1253-
// XXX EMSCRIPTEN: Add '|| true' so that we always do the replacement.
1254-
// We're targetting SIMD.js, so there's less of an expectation that a
1255-
// particular shuffle mask will always map onto a particular instruction on
1256-
// a particular ISA because we aren't targetting a particular ISA (what the
1257-
// JS engine does is another story). We may wish to re-evaluate this choice
1258-
// as we move on to higher-element-count vectors, but especially for now this
1259-
// is quite desirable.
1260-
if (isSplat || newMask == LHSMask || newMask == RHSMask || newMask == Mask ||
1261-
true)
1262-
{
1252+
if (isSplat || newMask == LHSMask || newMask == RHSMask || newMask == Mask) {
12631253
SmallVector<Constant*, 16> Elts;
12641254
for (unsigned i = 0, e = newMask.size(); i != e; ++i) {
12651255
if (newMask[i] < 0) {

0 commit comments

Comments
 (0)