[PATCH] D52899: [TTI] Check that lowered type is floating point before calling isFabsFree

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 4 17:51:55 PDT 2018


sbc100 added a comment.

I'm not sure it actually does the vectorization in the end.    The bit-code that some out is basically identical.

I get the following stuff in `-debug-only=SLP`:

  SLP: Analyzing blocks in __multc3.
  SLP: Trying to vectorize starting at PHIs (1)
  SLP: Trying to vectorize a list of length = 2.
  SLP: Trying to vectorize starting at PHIs (2)
  SLP: Trying to vectorize a list of length = 2.
  SLP: Analyzing 2 operations 
  SLP: We are able to schedule this bundle.
  ...
  ...
  SLP: Calculating cost for tree of size 4.
  SLP: Adding cost 0 for bundle that starts with   %cmpinf = fcmp oeq fp128 %0, 0xL00000000000000007FFF000000000000.
  SLP: Call cost 0 (16-16) for   %0 = tail call fp128 @llvm.fabs.f128(fp128 %a)
  SLP: Adding cost 0 for bundle that starts with   %0 = tail call fp128 @llvm.fabs.f128(fp128 %a).
  SLP: Adding cost 0 for bundle that starts with fp128 %a.
  SLP: Adding cost 0 for bundle that starts with fp128 0xL00000000000000007FFF000000000000.
  SLP: #LV: 1 , Looking at   %0 = tail call fp128 @llvm.fabs.f128(fp128 %a)
  SLP: Spill Cost = 0.
  SLP: Extract Cost = 2.
  SLP: Total Cost = 2.
  SLP: Trying to vectorize a list of length = 2.
  SLP: Trying to vectorize a list of length = 2.

I don't really know how to interpret the debug output, but I don't see any changes made to the bit code.


Repository:
  rL LLVM

https://reviews.llvm.org/D52899





More information about the llvm-commits mailing list