[PATCH] D23049: [LV, X86] Be more optimistic about vectorizing shifts.

Elena Demikhovsky via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 1 23:15:21 PDT 2016


delena added inline comments.

================
Comment at: lib/Analysis/CostModel.cpp:126
@@ +125,3 @@
+// true only for the obviously uniform cases (argument, globalvariable)
+static bool isBroadcastOfUniform(Value *V) {
+  ShuffleVectorInst *SVI = dyn_cast<ShuffleVectorInst>(V);
----------------
You can use llvm::getSplatValue() here, it does what you need.


https://reviews.llvm.org/D23049





More information about the llvm-commits mailing list