[all-commits] [llvm/llvm-project] 91720e: [X86] combineX86ShufflesRecursively - fix use afte...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sun Sep 20 06:18:12 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 91720ee561b2da4161df6abaddfd8a677aebb504
      https://github.com/llvm/llvm-project/commit/91720ee561b2da4161df6abaddfd8a677aebb504
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-09-20 (Sun, 20 Sep 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp

  Log Message:
  -----------
  [X86] combineX86ShufflesRecursively - fix use after move warning. NFCI.

After moving WidenedMask is in an undefined state, so reduce scope of the variable so its reinitialized every iteration - we should still retain any memory allocation savings.




More information about the All-commits mailing list