[PATCH] Optimization for certain shufflevector by using insertps.

Sean Silva chisophugis at gmail.com
Wed Apr 23 17:49:49 PDT 2014


================
Comment at: lib/Target/X86/X86ISelLowering.cpp:3938
@@ +3937,3 @@
+  unsigned CorrectPosV2 = 0;
+  for (int i = 0; i < (int)VT.getVectorNumElements(); ++i)
+    if (Mask[i] == i)
----------------
Tiny style nit: the canonical LLVM counted loop is
```
for (int i = 0, e = Foo.size(); i != e; ++i)
```

http://reviews.llvm.org/D3475






More information about the llvm-commits mailing list