[all-commits] [llvm/llvm-project] edd4ae: [RISCV] Compute integers once in isSimpleVIDSequen...
Luke Lau via All-commits
all-commits at lists.llvm.org
Wed Feb 21 23:58:10 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: edd4aee4dd9b5b98b2576a6f783e4086173d902a
https://github.com/llvm/llvm-project/commit/edd4aee4dd9b5b98b2576a6f783e4086173d902a
Author: Luke Lau <luke at igalia.com>
Date: 2024-02-22 (Thu, 22 Feb 2024)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Log Message:
-----------
[RISCV] Compute integers once in isSimpleVIDSequence. NFCI (#82590)
We need to iterate through the integers twice in isSimpleVIDSequence, so
instead of computing them twice just compute them once at the start.
This also replaces the individual checks that each element is constant
with a single call to BuildVectorSDNode::isConstant.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list