[all-commits] [llvm/llvm-project] afa520: [FLANG]Add maxval simplification support

Mats Petersson via All-commits all-commits at lists.llvm.org
Wed Aug 24 06:11:34 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: afa520ab34803c82587ea6759bfd352579f741b4
      https://github.com/llvm/llvm-project/commit/afa520ab34803c82587ea6759bfd352579f741b4
  Author: Mats Petersson <mats.petersson at arm.com>
  Date:   2022-08-24 (Wed, 24 Aug 2022)

  Changed paths:
    M flang/lib/Optimizer/Transforms/SimplifyIntrinsics.cpp
    M flang/test/Transforms/simplifyintrinsics.fir

  Log Message:
  -----------
  [FLANG]Add maxval simplification support

Add simplifcation pass for MAXVAL intrinsic function

This refactors some of the code to allow variation on the
initialization value and operation performed within the loop,
reusing the majority of code for both SUM and MAXVAL.

Adding tests for the test-cases that produce different output
than the SUM function.

Reviewed By: vzakhari

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




More information about the All-commits mailing list