[all-commits] [llvm/llvm-project] bcc9c5: [LV] Replace unnecessary cast_or_null with cast (N...

Florian Hahn via All-commits all-commits at lists.llvm.org
Wed Nov 16 14:32:33 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bcc9c5d959b9cdfbb535ea298805c4993cf0bb64
      https://github.com/llvm/llvm-project/commit/bcc9c5d959b9cdfbb535ea298805c4993cf0bb64
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-11-16 (Wed, 16 Nov 2022)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

  Log Message:
  -----------
  [LV] Replace unnecessary cast_or_null with cast (NFC).

The existing code already unconditionally dereferences RepR, so
cast_or_null can be replaced by just cast.

Suggested by @Ayal during review of D136068, thanks!




More information about the All-commits mailing list