1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

[LV] Remove redundant access to Legal::getReductionVars() (NFC).

The reduction descriptor is retrieved earlier and stored in a variable
RdxDesc already.
This commit is contained in:
Florian Hahn 2021-03-24 19:00:51 +00:00
parent d5a36090d1
commit 4f9389f9a9

View File

@ -4291,7 +4291,6 @@ void InnerLoopVectorizer::fixReduction(PHINode *Phi, VPTransformState &State) {
// cheaper for the select to remain in the loop than be sunk out of it,
// and so use the select value for the phi instead of the old
// LoopExitValue.
RecurrenceDescriptor RdxDesc = Legal->getReductionVars()[Phi];
if (PreferPredicatedReductionSelect ||
TTI->preferPredicatedReductionSelect(
RdxDesc.getOpcode(), Phi->getType(),