OSDN Git Service

[ARM] Remove hasSideEffects from FP converts
authorDavid Green <david.green@arm.com>
Sun, 5 Jul 2020 13:54:12 +0000 (14:54 +0100)
committerDavid Green <david.green@arm.com>
Sun, 5 Jul 2020 15:23:24 +0000 (16:23 +0100)
commit74ca67c109c8d1abafe1d2bd4edfb85f03b45faa
tree3db8a2e47ca1980b52188fa84e840673bb9b2b0d
parent011d73202c06ef50f1e30eacebdc965933659d42
[ARM] Remove hasSideEffects from FP converts

Whether an instruction is deemed to have side effects in determined by
whether it has a tblgen pattern that emits a single instruction.
Because of the way a lot of the the vcvt instructions are specified
either in dagtodag code or with patterns that emit multiple
instructions, they don't get marked as not having side effects.

This just marks them as not having side effects manually. It can help
especially with instruction scheduling, to not create artificial
barriers, but one of these tests also managed to produce fewer
instructions.

Differential Revision: https://reviews.llvm.org/D81639
13 files changed:
llvm/lib/Target/ARM/ARMInstrVFP.td
llvm/test/CodeGen/ARM/cmov_fp16.ll
llvm/test/CodeGen/ARM/fp16-args.ll
llvm/test/CodeGen/ARM/fp16-bitcast.ll
llvm/test/CodeGen/ARM/fp16-fullfp16.ll
llvm/test/CodeGen/ARM/fp16-instructions.ll
llvm/test/CodeGen/ARM/no-fpscr-liveness.ll
llvm/test/CodeGen/ARM/vcvt.ll
llvm/test/CodeGen/Thumb2/LowOverheadLoops/mve-float-loops.ll
llvm/test/CodeGen/Thumb2/mve-masked-store.ll
llvm/test/CodeGen/Thumb2/mve-vcvt.ll
llvm/test/CodeGen/Thumb2/mve-vcvt16.ll
llvm/unittests/Target/ARM/MachineInstrTest.cpp