aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2022-05-03 09:32:34 +0100
committerDavid Green <david.green@arm.com>2022-05-03 09:32:34 +0100
commit6f81903e891cdc19d856d19efcc45a0d19f3ff8d (patch)
treebb231f26463b0264e79f58993bedaab7d4a23ecc /llvm/lib/CodeGen/MachineFunction.cpp
parent51e72570d7e163d03ff211b7127899a1efd08174 (diff)
downloadllvm-6f81903e891cdc19d856d19efcc45a0d19f3ff8d.zip
llvm-6f81903e891cdc19d856d19efcc45a0d19f3ff8d.tar.gz
llvm-6f81903e891cdc19d856d19efcc45a0d19f3ff8d.tar.bz2
[LV][SLP] Mark fptosi_sat as vectorizable
This adds fptosi_sat and fptoui_sat to the list of trivially vectorizable functions, mainly so that the loop vectorizer can vectorize the instruction. Marking them as trivially vectorizable also allows them to be SLP vectorized, and Scalarized. The signature of a fptosi_sat requires two type overrides (@llvm.fptosi.sat.v2i32.v2f32), unlike other intrinsics that often only take a single. This patch alters hasVectorInstrinsicOverloadedScalarOpd to isVectorIntrinsicWithOverloadTypeAtArg, so that it can mark the first operand of the intrinsic as a overloaded (but not scalar) operand. Differential Revision: https://reviews.llvm.org/D124358
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions