aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2023-04-16 15:38:31 +0100
committerFlorian Hahn <flo@fhahn.com>2023-04-16 15:38:31 +0100
commit668045eb77628be13e448ffbb855473ffca1cc43 (patch)
tree8caffbf8aa5bac27965c94f468c49af87a9761a2 /llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
parent2832d7941f4207f1fcf813b27cf08cecc3086959 (diff)
downloadllvm-668045eb77628be13e448ffbb855473ffca1cc43.zip
llvm-668045eb77628be13e448ffbb855473ffca1cc43.tar.gz
llvm-668045eb77628be13e448ffbb855473ffca1cc43.tar.bz2
[VPlan] Unify Value2VPValue and VPExternalDefs maps (NFCI).
Before this patch, a VPlan contained 2 mappings for Values -> VPValue: 1) Value2VPValue and 2) VPExternalDefs. This duplication is unnecessary and there are already cases where external defs are added to Value2VPValue. This patch replaces all uses of VPExternalDefs with Value2VPValue. It clarifies the naming of getOrAddVPValue (to getOrAddExternalVPValue) and addVPValue (to addExternalVPValue). At the moment, this is NFC, but will enable additional simplifications in D147783. Depends on D147891. Reviewed By: Ayal Differential Revision: https://reviews.llvm.org/D147892
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp')
0 files changed, 0 insertions, 0 deletions