[all-commits] [llvm/llvm-project] 241563: [SVE]Clarify TypeSize comparisons in llvm/lib/Tran...

CarolineConcatto via All-commits all-commits at lists.llvm.org
Fri Oct 23 01:15:54 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 241563647555e48cfa96146dd19d00e5aadbc518
      https://github.com/llvm/llvm-project/commit/241563647555e48cfa96146dd19d00e5aadbc518
  Author: Caroline Concatto <caroline.concatto at arm.com>
  Date:   2020-10-23 (Fri, 23 Oct 2020)

  Changed paths:
    M llvm/lib/Transforms/IPO/GlobalOpt.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
    M llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
    M llvm/lib/Transforms/Scalar/LoopPredication.cpp
    M llvm/lib/Transforms/Scalar/NaryReassociate.cpp
    M llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp

  Log Message:
  -----------
  [SVE]Clarify TypeSize comparisons in llvm/lib/Transforms

Use isKnownXY comparators when one of the operands can be with
scalable vectors or getFixedSize() for all the other cases.

This patch also does bug fixes for getPrimitiveSizeInBits by using
getFixedSize() near the places with the TypeSize comparison.

Differential Revision: https://reviews.llvm.org/D89703




More information about the All-commits mailing list