Changes

Summary

  1. [PowerPC] [NFC] Add Big-Endian checks for existing MMA tests (details)
  2. [NFC] Directly use OpenMPIRBuilder::Ident instead of IdentPtr->getPointerElementType() (details)
  3. [IndVars] Replace PHIs if loop exits on 1st iteration (details)
  4. [IndVars] Break backedge and replace PHIs if loop exits on 1st iteration (details)
  5. [NFC][CoroSplit] Directly use Function::getFunctionType() (details)
Commit 203cd01b54ddd720be17b8e19207ff5af4a22d4c by saghir
[PowerPC] [NFC] Add Big-Endian checks for existing MMA tests

This patch adds Big-Endian checks for the existing MMA test cases.
It also changes the target for these test cases to pwr10.

Reviewed By: #powerpc, nemanjai

Differential Revision: https://reviews.llvm.org/D109126
The file was modifiedclang/test/Sema/ppc-pair-mma-types.c
The file was modifiedclang/test/SemaCXX/ppc-pair-mma-types.cpp
The file was modifiedclang/test/CodeGen/builtins-ppc-pair-mma.c
Commit d48a3f9f757c2c4b6adc7b8f7ca94641d9cf3a46 by aeubanks
[NFC] Directly use OpenMPIRBuilder::Ident instead of IdentPtr->getPointerElementType()
The file was modifiedllvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
Commit 5a6dfb27ca7424f15a20f9bb7ec90d858865faa3 by mkazantsev
[IndVars] Replace PHIs if loop exits on 1st iteration

This is a part of D108910.
We replace all loop PHIs with values coming from the loop preheader if
we proved that backedge is never taken.

Patch by Dmitry Makogon!

Differential Revision: https://reviews.llvm.org/D109596
Reviewed By: lebedev.ri
The file was modifiedllvm/test/Transforms/IndVarSimplify/eliminate-backedge.ll
The file was modifiedllvm/lib/Transforms/Scalar/IndVarSimplify.cpp
The file was modifiedllvm/test/Transforms/IndVarSimplify/eliminate-exit-no-dl.ll
The file was modifiedllvm/test/Transforms/IndVarSimplify/floating-point-iv.ll
Commit d9ca444835e67960df927d5b8cade57776fdd8cb by mkazantsev
[IndVars] Break backedge and replace PHIs if loop exits on 1st iteration

Implement TODO in optimizeLoopExits. Now if we have proved that some loop exit
is taken on 1st iteration, we make all branches in the following exiting blocks
always branch out of the loop and their conditions simplified away.

Patch by Dmitry Makogon!

Differential Revision: https://reviews.llvm.org/D108910
Reviewed By: lebedev.ri
The file was modifiedllvm/test/Transforms/IndVarSimplify/eliminate-backedge.ll
The file was modifiedllvm/lib/Transforms/Scalar/IndVarSimplify.cpp
Commit 6a92ab07cbb6dda9d494d7909c2daee2d65d40b7 by aeubanks
[NFC][CoroSplit] Directly use Function::getFunctionType()
The file was modifiedllvm/lib/Transforms/Coroutines/CoroSplit.cpp