On Fri, Sep 26, 2025 at 3:47 PM 钟居哲 <[email protected]> wrote:
>
> I think it's better to make it "demand policy" for "agnostic" instead of 
> changing the fusion rule.
>
> Could you try this ?
>
> In riscv-vsetvl.cc line: 1147 - 1150
>
> if (!m_ta)
>   dflags |= demand_flags::DEMAND_TAIL_POLICY_P;
> if (!m_ma)
>   dflags |= demand_flags::DEMAND_MASK_POLICY_P;
>
> change it to:
>
> if (!m_ta || riscv_prefer_agnostic_p ())
>   dflags |= demand_flags::DEMAND_TAIL_POLICY_P;
> if (!m_ma || riscv_prefer_agnostic_p ())
>   dflags |= demand_flags::DEMAND_MASK_POLICY_P;
>
> to see whether it can work ?
> ________________________________
> [email protected]
>

It works !

Reply via email to