Unverified Commit b423e1f0 authored by Yingwei Zheng's avatar Yingwei Zheng
Browse files

[SDAG][RISCV] Avoid neg instructions when lowering atomic_load_sub with a constant rhs

This patch avoids creating (sub x0, rhs) when lowering atomic_load_sub with a constant rhs.
Comparison with GCC: https://godbolt.org/z/c5zPdP7j4

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D158673
parent f3796acd
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment