[all-commits] [llvm/llvm-project] ae978b: [LoopFlatten] Recognise gep+gep (#72515)
John Brawn via All-commits
all-commits at lists.llvm.org
Wed Jan 10 06:33:14 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ae978baaf6cc5566036b89ceaadcabb47361ba2f
https://github.com/llvm/llvm-project/commit/ae978baaf6cc5566036b89ceaadcabb47361ba2f
Author: John Brawn <john.brawn at arm.com>
Date: 2024-01-10 (Wed, 10 Jan 2024)
Changed paths:
M llvm/include/llvm/IR/PatternMatch.h
M llvm/lib/Transforms/Scalar/LoopFlatten.cpp
A llvm/test/Transforms/LoopFlatten/loop-flatten-gep.ll
Log Message:
-----------
[LoopFlatten] Recognise gep+gep (#72515)
Now that InstCombine canonicalises add+gep to gep+gep, LoopFlatten needs
to recognise (gep (gep ptr (i*M)), j) as being something it can
optimise.
More information about the All-commits
mailing list