[RISCV] Fix i64 gather/scatter cost on rv32 (#176105) Fixes #175909 We compute the cost of a gather/scatter by multiplying the cost of the scalar element type memory op by the estimated number of elements. On rv32 though a scalar i64 load costs 2, even if we have zve64x. This causes the cost to diverge between a vector of f64 and vector of i64, even though both are the same. This fixes it by just using TTI::TCC_Basic as the scalar memory op cost. The element type is checked to be legal at this point. I think we have the same issue for the strided op cost, but we don't have test coverage for it yet. (cherry picked from commit 0c1257cd46456513016b106d964dc5ad47c6289b)
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.