[all-commits] [llvm/llvm-project] b3a335: [Analysis][LoopVectorize] rename "Unsafe" variable...

RotateRight via All-commits all-commits at lists.llvm.org
Thu Mar 4 05:53:33 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b3a33553aec7b3a9e702da0ae6669eab1a6b14ae
      https://github.com/llvm/llvm-project/commit/b3a33553aec7b3a9e702da0ae6669eab1a6b14ae
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-03-04 (Thu, 04 Mar 2021)

  Changed paths:
    M llvm/include/llvm/Analysis/IVDescriptors.h
    M llvm/include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h
    M llvm/lib/Analysis/IVDescriptors.cpp
    M llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp

  Log Message:
  -----------
  [Analysis][LoopVectorize] rename "Unsafe" variables/methods; NFC

We are tracking an FP instruction that does *not* have FMF (reassoc)
properties, so calling that "Unsafe" seems opposite of the common
reading.

I also removed one getter method by rolling the null check into
the access. Further simplification seems possible.

The motivation is to clean up the interactions between FMF and
function-level attributes in these classes and their callers.




More information about the All-commits mailing list