[all-commits] [llvm/llvm-project] 97f1db: [LoopIdimo] Use tryZExtValue() instead of getZExtV...

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Oct 24 02:06:00 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 97f1db2fdd5810e15d152167e9f1e29159a8cee9
      https://github.com/llvm/llvm-project/commit/97f1db2fdd5810e15d152167e9f1e29159a8cee9
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-10-24 (Tue, 24 Oct 2023)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
    A llvm/test/Transforms/LoopIdiom/pr70008.ll

  Log Message:
  -----------
  [LoopIdimo] Use tryZExtValue() instead of getZExtValue()

To avoid an assertion for large BECounts.

I also suspect that this code is missing an overflow check.

Fixes https://github.com/llvm/llvm-project/issues/70008.




More information about the All-commits mailing list