[all-commits] [llvm/llvm-project] 74adc3: [flang][hlfir] fix missing conversion in transpose...

Tom Eccles via All-commits all-commits at lists.llvm.org
Wed Jun 21 09:59:38 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 74adc3e0ebfb42a48f02d8d7094d6848a37a21f5
      https://github.com/llvm/llvm-project/commit/74adc3e0ebfb42a48f02d8d7094d6848a37a21f5
  Author: Tom Eccles <tom.eccles at arm.com>
  Date:   2023-06-21 (Wed, 21 Jun 2023)

  Changed paths:
    M flang/include/flang/Optimizer/Builder/HLFIRTools.h
    M flang/lib/Optimizer/Builder/HLFIRTools.cpp
    M flang/lib/Optimizer/HLFIR/Transforms/SimplifyHLFIRIntrinsics.cpp
    M flang/test/HLFIR/simplify-hlfir-intrinsics.fir

  Log Message:
  -----------
  [flang][hlfir] fix missing conversion in transpose simplification

It seems just replacing the operation was not replacing all of the uses
when the types of the expression before and after this pass differ (due
to differing shape information). Now the shape information is always
kept the same.

This fixes https://github.com/llvm/llvm-project/issues/63399

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




More information about the All-commits mailing list