[all-commits] [llvm/llvm-project] 6107cd: [InstCombine] NEW Baseline tests for InstCombine o...
William Junda Huang via All-commits
all-commits at lists.llvm.org
Thu May 19 11:46:35 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6107cdc9295d339304ce3e88e0b038db661d2bcb
https://github.com/llvm/llvm-project/commit/6107cdc9295d339304ce3e88e0b038db661d2bcb
Author: William Huang <williamjhuang at google.com>
Date: 2022-05-19 (Thu, 19 May 2022)
Changed paths:
A llvm/test/Transforms/InstCombine/gep-canonicalize-constant-indices.ll
A llvm/test/Transforms/InstCombine/gep-merge-constant-indices.ll
Log Message:
-----------
[InstCombine] NEW Baseline tests for InstCombine optimization to merge GEP instructions with constant indices
Splitted the merge constant-indexed GEP optimization into two smaller transformations: 1. Merging GEP of GEP if both are constant-indexed. 2. Swapping constant indexed GEP in a chain of (non-constant) GEP to the end, so that 1 can be applied repeatedly.
There is existing code to partially handle transformation 1, but it only deals with limited cases
Unit tests are breaking down into two parts for the 2 transformations.
Reviewed By: nikic
Differential Revision: https://reviews.llvm.org/D125438
More information about the All-commits
mailing list