aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/CloneFunction.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2024-10-03 16:02:34 +0100
committerGitHub <noreply@github.com>2024-10-03 16:02:34 +0100
commitdce5bf8efc13896ebf0ababfda00393eaa5cc99d (patch)
tree193163b0f149cb57c8a842811c886e3efa25f452 /llvm/lib/Transforms/Utils/CloneFunction.cpp
parent9fd75233ca757cf172d10703ac82fc162ef8ec0e (diff)
downloadllvm-dce5bf8efc13896ebf0ababfda00393eaa5cc99d.zip
llvm-dce5bf8efc13896ebf0ababfda00393eaa5cc99d.tar.gz
llvm-dce5bf8efc13896ebf0ababfda00393eaa5cc99d.tar.bz2
[ValueTracking] AllowEphemerals for alignment assumptions. (#108632)
Allow AllowEphemerals in isValidAssumeForContext, as the CxtI might be the producer of the pointer in the bundle. At the moment, align assumptions aren't optimized away. This allows using the assumption in the computeKnownBits call in getConstantMultipleImpl. We could extend the computeKnownBits API to allow callers to specify if ephemerals are allowed, if the info from computeKnownBitsFromContext is used to remove alignment assumptions. PR: https://github.com/llvm/llvm-project/pull/108632
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
0 files changed, 0 insertions, 0 deletions