[all-commits] [llvm/llvm-project] 1db2f3: DAG: Fix asserting in error case for powi softening

Matt Arsenault via All-commits all-commits at lists.llvm.org
Sun Jul 6 23:42:50 PDT 2025


  Branch: refs/heads/users/arsenm/dag/fix-assertion-in-error-case-soften-fpowi
  Home:   https://github.com/llvm/llvm-project
  Commit: 1db2f3e0946d37f3feecb7bb7a752740cec5d027
      https://github.com/llvm/llvm-project/commit/1db2f3e0946d37f3feecb7bb7a752740cec5d027
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2025-07-07 (Mon, 07 Jul 2025)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
    A llvm/test/CodeGen/ARM/powi-soften-libcall-error.ll
    A llvm/test/CodeGen/MSP430/powi-soften-libcall-error.ll

  Log Message:
  -----------
  DAG: Fix asserting in error case for powi softening

We need to return the expected legalized type, not the original
in this case. Also swap to returning poison, and avoid contraction
in error message.

For some reason the strictfp version of powi hardcodes i32 as
the int type, so use an msp430 test to test the strict case where
int is i16.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list