[all-commits] [llvm/llvm-project] fd6619: [VPlan] Manage compare predicates in VPRecipeWithI...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Sat Sep 2 13:46:01 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fd6619577790f049ce72fa043351028d8c132d58
https://github.com/llvm/llvm-project/commit/fd6619577790f049ce72fa043351028d8c132d58
Author: Florian Hahn <flo at fhahn.com>
Date: 2023-09-02 (Sat, 02 Sep 2023)
Changed paths:
M llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
M llvm/lib/Transforms/Vectorize/VPlan.h
M llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
M llvm/test/Transforms/LoopVectorize/vplan-sink-scalars-and-merge.ll
Log Message:
-----------
[VPlan] Manage compare predicates in VPRecipeWithIRFlags.
Extend VPRecipeWithIRFlags to also manage predicates for compares. This
allows removing the custom ICmpULE opcode from VPInstruction which was a
workaround for missing proper predicate handling.
This simplifies the code a bit while also allowing compares with any
predicates. It also fixes a case where the compare predixcate wasn't
printed properly for VPReplicateRecipes.
Discussed/split off from D150398.
Reviewed By: Ayal
Differential Revision: https://reviews.llvm.org/D158992
More information about the All-commits
mailing list