This repository was archived by the owner on Feb 5, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
lib/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -1249,17 +1249,7 @@ Instruction *InstCombiner::visitShuffleVectorInst(ShuffleVectorInst &SVI) {
1249
1249
1250
1250
// If the result mask is equal to one of the original shuffle masks,
1251
1251
// 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) {
1263
1253
SmallVector<Constant*, 16 > Elts;
1264
1254
for (unsigned i = 0 , e = newMask.size (); i != e; ++i) {
1265
1255
if (newMask[i] < 0 ) {
You can’t perform that action at this time.
0 commit comments