[PATCH] Propagate instruction metadata during SLP vectorization.
Nadav Rotem
nrotem at apple.com
Fri Nov 22 15:26:24 PST 2013
================
Comment at: lib/Transforms/Vectorize/SLPVectorizer.cpp:1512
@@ -1480,2 +1511,3 @@
E->VectorizedValue = V;
- return V;
+
+ Instruction *I = dyn_cast<Instruction>(V);
----------------
The idiom that we use is:
if (Instruction *I = den_cast<Instruction>(V))
return prop(I);
return V;
http://llvm-reviews.chandlerc.com/D2191
More information about the llvm-commits
mailing list