[all-commits] [llvm/llvm-project] 914b9e: [Flang] Fixes for XArrayCoorOp

kiranchandramohan via All-commits all-commits at lists.llvm.org
Fri Jun 17 10:15:52 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 914b9eec04b5759884ae6ac4995d8293e21efc7e
  Author: Kiran Chandramohan <kiran.chandramohan at arm.com>
  Date:   2022-06-17 (Fri, 17 Jun 2022)

  Changed paths:
    M flang/lib/Optimizer/CodeGen/CodeGen.cpp
    M flang/test/Fir/convert-to-llvm.fir

  Log Message:
  [Flang] Fixes for XArrayCoorOp

The upstreamed code was not incrementing the sliceOffset in multiples
of 3. This issue is fixed by using Offsets and incrementing by 3 during
every iteration.
In the conversion pattern, we were comparing the definingOp of an
operand with an FIR::UndefOp. Use LLVM::UndefOp for conversion.

Reviewed By: clementval, Leporacanthicus

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

More information about the All-commits mailing list