[all-commits] [llvm/llvm-project] a36cb0: [AMDGPU] Handle CreateBinOp not returning BinaryOp...

anjenner via All-commits all-commits at lists.llvm.org
Thu May 29 10:10:56 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a36cb01ea7750373739c206f86abcce0dbf9df5f
      https://github.com/llvm/llvm-project/commit/a36cb01ea7750373739c206f86abcce0dbf9df5f
  Author: anjenner <161845516+anjenner at users.noreply.github.com>
  Date:   2025-05-29 (Thu, 29 May 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
    M llvm/test/CodeGen/AMDGPU/amdgpu-codegenprepare-idiv.ll

  Log Message:
  -----------
  [AMDGPU] Handle CreateBinOp not returning BinaryOperator (#137791)

AMDGPUCodeGenPrepareImpl::visitBinaryOperator() calls
Builder.CreateBinOp() and casts the resulting Value as a BinaryOperator
without checking, leading to an assert failure in a case found by
fuzzing. In this case, the operands are constant and CreateBinOp does
constant folding so returns a Constant instead of a BinaryOperator.



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