mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +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:
parent
d5a36090d1
commit
4f9389f9a9
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user