[PATCH] D81766: [VectorCombine] try to create vector loads from scalar loads

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 23 14:26:02 PDT 2020


nikic added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/VectorCombine.cpp:130
+  // We can aggressively convert to the vector form because the backend will
+  // invert this transform if it does not result in a performance win.
+  if (OldCost < NewCost)
----------------
Will other middle end passes be able to handle this well as well? I don't have anything specific in mind here, but would suspect that some passes will be able to deal with a "load" better than a "bitcast, load, extractelement" sequence.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81766/new/

https://reviews.llvm.org/D81766





More information about the llvm-commits mailing list