[PATCH] D89703: [SVE][ValueTracking] Clarify TypeSize comparisons in llvm/lib/Transforms
Caroline via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 19 08:12:53 PDT 2020
CarolineConcatto created this revision.
Herald added subscribers: llvm-commits, psnobl, hiraditya, tschuett.
Herald added a reviewer: efriedma.
Herald added a project: LLVM.
CarolineConcatto requested review of this revision.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D89703
Files:
llvm/lib/Transforms/IPO/GlobalOpt.cpp
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
llvm/lib/Transforms/Scalar/LoopPredication.cpp
llvm/lib/Transforms/Scalar/NaryReassociate.cpp
llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89703.299061.patch
Type: text/x-patch
Size: 6515 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201019/69a182cf/attachment.bin>
More information about the llvm-commits
mailing list