[all-commits] [llvm/llvm-project] d48c78: [InlineCost] GetElementPtr with constant operands
KirillVNaumov via All-commits
all-commits at lists.llvm.org
Thu Jun 25 11:10:41 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: d48c7859fbb911045b34ecd7f816186b9357d894
https://github.com/llvm/llvm-project/commit/d48c7859fbb911045b34ecd7f816186b9357d894
Author: Kirill Naumov <knaumov at azul.com>
Date: 2020-06-25 (Thu, 25 Jun 2020)
Changed paths:
M llvm/lib/Analysis/InlineCost.cpp
A llvm/test/Transforms/Inline/gep_from_constant.ll
Log Message:
-----------
[InlineCost] GetElementPtr with constant operands
If the GEP instruction contanins only constants as its arguments,
then it should be recognized as a constant. For now, there was
also added a flag to turn off this simplification if it causes
any regressions ("disable-gep-const-evaluation") which is off
by default. Once I gather needed data of the effectiveness of
this simplification, the flag will be deleted.
Reviewers: apilipenko, davidxl, mtrofin
Reviewed By: mtrofin
Differential Revision: https://reviews.llvm.org/D81026
More information about the All-commits
mailing list