[all-commits] [llvm/llvm-project] fa284e: [VPlan] Clean up tryToCreate(Widen)Recipe. (NFC)
Florian Hahn via All-commits
all-commits at lists.llvm.org
Mon Apr 20 02:08:18 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: fa284e136e1b67e233f445fcf643eeaa10d6835c
https://github.com/llvm/llvm-project/commit/fa284e136e1b67e233f445fcf643eeaa10d6835c
Author: Florian Hahn <flo at fhahn.com>
Date: 2020-04-20 (Mon, 20 Apr 2020)
Changed paths:
M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
M llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h
Log Message:
-----------
[VPlan] Clean up tryToCreate(Widen)Recipe. (NFC)
This patch includes some clean-ups to tryToCreateRecipe, suggested in
D77973.
It includes:
* Renaming tryToCreateRecipe to tryToCreateWidenRecipe.
* Move VPBB insertion logic to caller of tryToCreateWidenRecipe.
* Hoists instruction checks to tryToCreateWidenRecipe, making it
clearer which instructions are handled by which recipe, simplifying
the checks by using early exits.
* Split up handling of induction PHIs and truncates using inductions.
Reviewers: gilr, rengolin, Ayal, hsaito
Reviewed By: Ayal
Differential Revision: https://reviews.llvm.org/D78287
More information about the All-commits
mailing list