aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ExpandVectorPredication.cpp
diff options
context:
space:
mode:
authorMatthias Springer <me@m-sp.org>2024-08-09 07:51:30 +0200
committerGitHub <noreply@github.com>2024-08-09 07:51:30 +0200
commitf09a28e66cfc5815dbac3e42944b5d0432f970bc (patch)
tree1ee37572ad45b1b84ffbc4ed6abe6dfba25f62eb /llvm/lib/CodeGen/ExpandVectorPredication.cpp
parentbe66c506c7fd6fdb7363f724075d02ca0d35713a (diff)
downloadllvm-f09a28e66cfc5815dbac3e42944b5d0432f970bc.zip
llvm-f09a28e66cfc5815dbac3e42944b5d0432f970bc.tar.gz
llvm-f09a28e66cfc5815dbac3e42944b5d0432f970bc.tar.bz2
[mlir][Transforms][NFC] Dialect conversion: Eagerly build reverse mapping (#101476)
The "inverse mapping" is an inverse IRMapping that points from replaced values to their original values. This inverse mapping is needed when legalizing unresolved materializations, to figure out if a value has any uses. (It is not sufficient to examine the IR, because some IR changes have not been materialized yet.) There was a check in `OperationConverter::finalize` that computed the inverse mapping only when needed. This check is not needed. `legalizeUnresolvedMaterializations` always computes the inverse mapping, so we can just do that in `OperationConverter::finalize` before calling `legalizeUnresolvedMaterializations`. Depends on #98805
Diffstat (limited to 'llvm/lib/CodeGen/ExpandVectorPredication.cpp')
0 files changed, 0 insertions, 0 deletions