[all-commits] [llvm/llvm-project] 4f50ce: [FunctionAttrs] Don't infer noundef when return ha...

Shonie Caplan via All-commits all-commits at lists.llvm.org
Thu Apr 16 06:42:57 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f50ce24315a03cfb3b9ec2e5480d866c451f1ad
      https://github.com/llvm/llvm-project/commit/4f50ce24315a03cfb3b9ec2e5480d866c451f1ad
  Author: Shonie Caplan <94767648+shoniecaplan at users.noreply.github.com>
  Date:   2026-04-16 (Thu, 16 Apr 2026)

  Changed paths:
    M llvm/lib/Transforms/IPO/FunctionAttrs.cpp
    M llvm/test/Transforms/FunctionAttrs/noundef.ll

  Log Message:
  -----------
  [FunctionAttrs] Don't infer noundef when return has nofpclass (#191822)

- Fixes: #191338

nofpclass violations on a return produce poison.
Poison returns marked noundef are UB.
This turns off noundef inference when nofpclass attributes are present.

---------

Co-authored-by: Shonie Caplan <shonie at genki.com>
Co-authored-by: Yingwei Zheng <dtcxzyw at qq.com>



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