[AArch64][SVE] Move convert.{from,to}.svbool optimization into InstCombine
authorBradley Smith <bradley.smith@arm.com>
Mon, 26 Apr 2021 15:19:25 +0000 (16:19 +0100)
committerBradley Smith <bradley.smith@arm.com>
Thu, 29 Apr 2021 11:17:42 +0000 (12:17 +0100)
commitc8f20ed44888f3a09c077690480d1d978c881b0d
treeeafedb7fbb5c73f02f8e3bee3086e085e4600049
parent6841e6afba00e78972061d2d9bb631c4ac38ad25
[AArch64][SVE] Move convert.{from,to}.svbool optimization into InstCombine

As part of this the ptrue coalescing done in SVEIntrinsicOpts has been
modified to not introduce redundant converts, since the convert removal
will no longer run after that optimisation to clean up.

Differential Revision: https://reviews.llvm.org/D101302
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
llvm/lib/Target/AArch64/SVEIntrinsicOpts.cpp
llvm/test/CodeGen/AArch64/sve-coalesce-ptrue-intrinsics.ll
llvm/test/Transforms/InstCombine/AArch64/sve-intrinsic-opts-reinterpret.ll [moved from llvm/test/CodeGen/AArch64/sve-intrinsic-opts-reinterpret.ll with 71% similarity]