[all-commits] [llvm/llvm-project] 86bbf0: [llvm-profgen] CSProfileGenerator::generateLineNum...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri Jan 14 06:51:48 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 86bbf01d896cfe82acd4379be436a0417976000b
      https://github.com/llvm/llvm-project/commit/86bbf01d896cfe82acd4379be436a0417976000b
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-01-14 (Fri, 14 Jan 2022)

  Changed paths:
    M llvm/tools/llvm-profgen/ProfileGenerator.cpp

  Log Message:
  -----------
  [llvm-profgen] CSProfileGenerator::generateLineNumBasedProfile - use cast<> instead of dyn_cast<> to avoid dereference of nullptr

The pointer is always dereferenced immediately below, so assert the cast is correct instead of returning nullptr


  Commit: 92ba979c28357ec6db1ad4990d341bd862d38a9f
      https://github.com/llvm/llvm-project/commit/92ba979c28357ec6db1ad4990d341bd862d38a9f
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-01-14 (Fri, 14 Jan 2022)

  Changed paths:
    M llvm/tools/llvm-profgen/ProfileGenerator.cpp

  Log Message:
  -----------
  [llvm-profgen] Pass iteration value by reference in for-range loops to avoid unnecessary copies


  Commit: 7d0ea3f41aa729ce70a413a94867836b73881d2b
      https://github.com/llvm/llvm-project/commit/7d0ea3f41aa729ce70a413a94867836b73881d2b
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-01-14 (Fri, 14 Jan 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/vector-shuffle-256-v4.ll

  Log Message:
  -----------
  [X86] combineConcatVectorOps - fold concat(movddup(x),movddup(y)) -> movddup(concat(x,y))

For AVX2+ targets this requires us to also recognise v4f64 concat(broadcast(x),broadcast(y)) -> movddup(concat(x,y))


  Commit: bb3d4fa10f45c3bb8a47c1c8cd95ca9e7236d846
      https://github.com/llvm/llvm-project/commit/bb3d4fa10f45c3bb8a47c1c8cd95ca9e7236d846
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-01-14 (Fri, 14 Jan 2022)

  Changed paths:
    M llvm/test/CodeGen/X86/vector-shuffle-256-v8.ll

  Log Message:
  -----------
  [X86] Add tests showing failure to concatenate vmovsldup or vmovshdup nodes


Compare: https://github.com/llvm/llvm-project/compare/0af1808f9b99...bb3d4fa10f45


More information about the All-commits mailing list