[all-commits] [llvm/llvm-project] 4f3b1c: [IRBuilder] Fix CreateFDivFMF ignoring source FMF

Daniel Woodworth via All-commits all-commits at lists.llvm.org
Tue Dec 13 02:40:19 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f3b1c6dd6ef6c7b5bb79f058e3b7ba4bcdf4566
      https://github.com/llvm/llvm-project/commit/4f3b1c6dd6ef6c7b5bb79f058e3b7ba4bcdf4566
  Author: Daniel Woodworth <daniel.woodworth at intel.com>
  Date:   2022-12-13 (Tue, 13 Dec 2022)

  Changed paths:
    M llvm/include/llvm/IR/IRBuilder.h
    M llvm/unittests/IR/IRBuilderTest.cpp

  Log Message:
  -----------
  [IRBuilder] Fix CreateFDivFMF ignoring source FMF

This change fixes a small bug in IRBuilderBase::CreateFDivFMF introduced
by accident in rGf34dcf27637f which caused the builder's default fast math
flags to be used for the new fdiv instruction instead of the ones from
the source instruction. It also adds unit testing for the CreateF*FMF
family of functions to more easily catch similar bugs in the future.

Differential Revision: https://reviews.llvm.org/D139583




More information about the All-commits mailing list