[all-commits] [llvm/llvm-project] 455d43: [Utils] collectBitParts - bail for integers > 128-...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri Feb 26 07:12:18 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 455d43b951ae31dac133a8650532797f01343a36
      https://github.com/llvm/llvm-project/commit/455d43b951ae31dac133a8650532797f01343a36
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-02-26 (Fri, 26 Feb 2021)

  Changed paths:
    M llvm/lib/Transforms/Utils/Local.cpp
    M llvm/test/Transforms/InstCombine/bswap.ll

  Log Message:
  -----------
  [Utils] collectBitParts - bail for integers > 128-bits

collectBitParts uses int8_t for the bit indices, leaving a 128-bit limit.

We already test for this before calling collectBitParts, but rGb94c215592bd added truncate handling which meant we could end up processing wider integers.

Thanks to @manojgupta for the repro.




More information about the All-commits mailing list