[all-commits] [llvm/llvm-project] d4ed25: [RISCV] Assume no-op addrspacecasts by default
Fraser Cormack via All-commits
all-commits at lists.llvm.org
Fri Dec 18 13:14:29 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: d4ed253d0b8487d9e9fd95a3895f83c437e5e7bb
https://github.com/llvm/llvm-project/commit/d4ed253d0b8487d9e9fd95a3895f83c437e5e7bb
Author: Fraser Cormack <fraser at codeplay.com>
Date: 2020-12-18 (Fri, 18 Dec 2020)
Changed paths:
M llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
M llvm/lib/Target/RISCV/RISCVTargetMachine.h
A llvm/test/CodeGen/RISCV/addrspacecast.ll
Log Message:
-----------
[RISCV] Assume no-op addrspacecasts by default
To support OpenCL, which typically uses SPIR as an IR, non-zero address
spaces must be accounted for. This patch makes the RISC-V target assume
no-op address space casts across the board, which effectively removes
the need to support addrspacecast instructions in the backend.
For a RISC-V implementation with different configurations or specialized
address spaces where casts aren't no-ops, the function can be adjusted
as required.
Reviewed By: jrtc27
Differential Revision: https://reviews.llvm.org/D93536
More information about the All-commits
mailing list