[AArch64] Fix costs of float vector compare/selects pairs.
authorFlorian Hahn <flo@fhahn.com>
Mon, 31 Jan 2022 10:18:28 +0000 (10:18 +0000)
committerFlorian Hahn <flo@fhahn.com>
Mon, 31 Jan 2022 10:18:29 +0000 (10:18 +0000)
commit17ebd68ae6941eb8ead8b42e07bedf12a91479cb
treec6a56b39bc97bfd991d330aa35005b6a81be557c
parente07823ad729a16c609e9e234849f56bf9f1d5f00
[AArch64] Fix costs of float vector compare/selects pairs.

The current cost-model overestimates the cost of vector compares &
selects for ordered floating point compares. This patch fixes that by
extending the existing logic for integer predicates.

Reviewed By: dmgreen

Differential Revision: https://reviews.llvm.org/D118256
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
llvm/test/Analysis/CostModel/AArch64/vector-select.ll