[all-commits] [llvm/llvm-project] 5c74c6: [AArch64] Use CMTST for != 0 vector compares (vnot...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Wed Feb 24 01:40:08 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5c74c6be3c291c27b78918aefe4017ea59b4ede8
https://github.com/llvm/llvm-project/commit/5c74c6be3c291c27b78918aefe4017ea59b4ede8
Author: Florian Hahn <flo at fhahn.com>
Date: 2021-02-24 (Wed, 24 Feb 2021)
Changed paths:
M llvm/lib/Target/AArch64/AArch64InstrInfo.td
M llvm/test/CodeGen/AArch64/neon-compare-instructions.ll
M llvm/test/CodeGen/AArch64/vec_umulo.ll
Log Message:
-----------
[AArch64] Use CMTST for != 0 vector compares (vnot (CMEQz A)).
(CMTST A, A) will only set elements to 0 if the element is 0 in A. Use
it for != 0 compares, which currently use (vnot (CMEQz A)). This saves a
mvn instruction.
Reviewed By: dmgreen
Differential Revision: https://reviews.llvm.org/D97303
More information about the All-commits
mailing list