[PATCH] D137913: [X86] Rewrite `getScalarizationOverhead()`

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 13 12:42:31 PST 2022


RKSimon added a comment.

Sorry - running out of time, I'll have to come back to this tomorrow



================
Comment at: llvm/lib/Target/X86/X86TargetTransformInfo.cpp:4440
+          APInt LaneEltMask = WidenedDemandedElts.extractBits(Scale, Scale * I);
+          unsigned Population = LaneEltMask.countPopulation();
+          bool SubvectorIsAffected = Population > 0;
----------------
Do we actually need to do a costly popcnt? Are we doing anything other than checking for zero / allones?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D137913



More information about the llvm-commits mailing list