[PATCH] D125600: [SelectionDAGBuilder] Pass fast math flags to most of VP SDNodes.

Yeting Kuo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 17 22:55:02 PDT 2022


fakepaper56 added inline comments.


================
Comment at: llvm/test/CodeGen/RISCV/pass-fast-math-flags-sdnode.ll:1
+; REQUIRES: asserts
+; RUN: llc < %s -mtriple=riscv64 -mattr=+v -debug-only=isel -o /dev/null 2>&1                        | FileCheck %s
----------------
craig.topper wrote:
> I didn't think about this before, but is it possible to use -stop-after=finalize-isel and inspect the MIR output instead? That wouldn't require an asserts build.
There is no optimization of VP using fast math flags and I don't know how to make MIR print fast-math flags. The output of `llc -mtriple=riscv64 -mattr=+v fa. -stop-after=finalize-isel` : 
`%7:vrnov0 = nofpexcept PseudoVFMUL_VV_M1_MASK %8, %0, %1, $v0, killed %6, 6 /* e64 */, 1, implicit $frm`


================
Comment at: llvm/test/CodeGen/RISCV/pass-fast-math-flags-sdnode.ll:1
+; REQUIRES: asserts
+; RUN: llc < %s -mtriple=riscv64 -mattr=+v -debug-only=isel -o /dev/null 2>&1                        | FileCheck %s
----------------
fakepaper56 wrote:
> craig.topper wrote:
> > I didn't think about this before, but is it possible to use -stop-after=finalize-isel and inspect the MIR output instead? That wouldn't require an asserts build.
> There is no optimization of VP using fast math flags and I don't know how to make MIR print fast-math flags. The output of `llc -mtriple=riscv64 -mattr=+v fa. -stop-after=finalize-isel` : 
> `%7:vrnov0 = nofpexcept PseudoVFMUL_VV_M1_MASK %8, %0, %1, $v0, killed %6, 6 /* e64 */, 1, implicit $frm`
Could we get MIR


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125600/new/

https://reviews.llvm.org/D125600



More information about the llvm-commits mailing list