[llvm-branch-commits] [RISCV] Remove hasSideEffects=1 for saturating/fault-only-first instructions (PR #90049)

Craig Topper via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Apr 25 07:03:42 PDT 2024


topperc wrote:

> For saturating instructions, they may write vxsat. This is like
floating-point instructions that may write fflags, but we don't
model floating-point instructions as hasSideEffects=1.

That's because floating point instructions use mayRaiseFPExceptions=1. And STRICT_* nodes set don't set the NoFPExcept bit in MIFlags. Though we don't have a story for how to make reading FFLAGS work with riscv.* intrinsics. That's an issue on all targets as there is no "constrained" or "strict" support for target specific intrinsics.

https://github.com/llvm/llvm-project/pull/90049


More information about the llvm-branch-commits mailing list