[all-commits] [llvm/llvm-project] 239fcd: [LV] NFCI: Do cost comparison on InstructionCost d...
sdesmalen-arm via All-commits
all-commits at lists.llvm.org
Sat Jul 10 04:23:14 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 239fcda268dc554daf4c2bf20888c72c55518bda
https://github.com/llvm/llvm-project/commit/239fcda268dc554daf4c2bf20888c72c55518bda
Author: Sander de Smalen <sander.desmalen at arm.com>
Date: 2021-07-10 (Sat, 10 Jul 2021)
Changed paths:
M llvm/include/llvm/Support/InstructionCost.h
M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Log Message:
-----------
[LV] NFCI: Do cost comparison on InstructionCost directly.
Instead of performing the isMoreProfitable() operation on
InstructionCost::CostTy the operation is performed on InstructionCost
directly, so that it can handle the case where one of the costs is
Invalid.
This patch also changes the CostTy to be int64_t, so that the type is
wide enough to deal with multiplications with e.g. `unsigned MaxTripCount`.
Reviewed By: dmgreen
Differential Revision: https://reviews.llvm.org/D105113
More information about the All-commits
mailing list