aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
diff options
context:
space:
mode:
authorAmy Kwan <amy.kwan1@ibm.com>2021-04-06 12:25:53 -0500
committerAmy Kwan <amy.kwan1@ibm.com>2021-04-06 13:38:11 -0500
commitbd6033eca7be937a236401fdbbf414d6929a44e8 (patch)
tree918044901953b6288264f022e19de075846ec98b /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
parenta7ef45bc5c1d0c2788680dbcb261304d7dfae03c (diff)
downloadllvm-bd6033eca7be937a236401fdbbf414d6929a44e8.zip
llvm-bd6033eca7be937a236401fdbbf414d6929a44e8.tar.gz
llvm-bd6033eca7be937a236401fdbbf414d6929a44e8.tar.bz2
[PowerPC] Materialize 34-bit constants with pli directly
Previously, 34-bit constants were materialized in selectI64Imm(), and we relied on td pattern matching to instead produce a pli. This becomes problematic as there is no guarantee that the 34-bit constant will reach the td pattern selection for pli. It is also possible for other transformations (such as complex bit permutations) to also produce and utilize the 34-bit constant materialized through selectI64Imm(). This patch instead produces pli on Power10 directly whenever the constant fits within 34-bits. Differential Revision: https://reviews.llvm.org/D99906
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions