[llvm] [RISCV] Use `experimental-p` extension for zero-extended narrow unsigned types (PR #213260)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 28 10:08:03 PDT 2026
================
----------------
topperc wrote:
> I guess we could but it also depends on how much size difference we are seeing practically and would the developer prefer size or performance in tight areas.
The developer has flags to communicate this, `-Os` and `-Oz`.
You can check for `-Oz` with `CurDAG->getMachineFunction().getFunction().hasMinSize()`
Or you can check for `-Os`, `-Oz` and cold paths with `CurDAG->shouldOptForSize()`.
https://github.com/llvm/llvm-project/pull/213260
More information about the llvm-commits
mailing list