[llvm] [RISCV][ISel] Add codegen support for the experimental zabha extension (PR #80192)
Alex Bradbury via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 7 05:11:55 PST 2024
================
@@ -629,7 +629,10 @@ RISCVTargetLowering::RISCVTargetLowering(const TargetMachine &TM,
if (Subtarget.hasStdExtA()) {
setMaxAtomicSizeInBitsSupported(Subtarget.getXLen());
- setMinCmpXchgSizeInBits(32);
+ if (Subtarget.hasStdExtZabha())
+ setMinCmpXchgSizeInBits(8);
----------------
asb wrote:
I think adding logic to widenPartwordATomicRMW is only caused if shouldExpandAtomicRMWInIR was not None would make sense.
https://github.com/llvm/llvm-project/pull/80192
More information about the llvm-commits
mailing list