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

Commit bc65799

Browse files
committedDec 13, 2014
Use SIMD_int32x4_splat instead of a plain constructor
1 parent 5e51bda commit bc65799

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎lib/Target/JSBackend/JSBackend.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1391,10 +1391,10 @@ void JSWriter::generateFCmpExpression(const FCmpInst *I, raw_string_ostream& Cod
13911391
bool Invert = false;
13921392
switch (cast<FCmpInst>(I)->getPredicate()) {
13931393
case ICmpInst::FCMP_FALSE:
1394-
Code << "SIMD_int32x4(0, 0, 0, 0)";
1394+
Code << "SIMD_int32x4_splat(0)";
13951395
return;
13961396
case ICmpInst::FCMP_TRUE:
1397-
Code << "SIMD_int32x4(-1, -1, -1, -1)";
1397+
Code << "SIMD_int32x4_splat(-1)";
13981398
return;
13991399
case ICmpInst::FCMP_ONE:
14001400
Code << "SIMD_float32x4_and(SIMD_float32x4_and("

0 commit comments

Comments
 (0)