[all-commits] [llvm/llvm-project] 8d18bc: [Utils] reduce code in createTargetReduction(); NFC
RotateRight via All-commits
all-commits at lists.llvm.org
Tue Dec 29 13:10:06 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 8d18bc8e6db717352811a44a81e76a196530f612
https://github.com/llvm/llvm-project/commit/8d18bc8e6db717352811a44a81e76a196530f612
Author: Sanjay Patel <spatel at rotateright.com>
Date: 2020-12-29 (Tue, 29 Dec 2020)
Changed paths:
M llvm/lib/Transforms/Utils/LoopUtils.cpp
Log Message:
-----------
[Utils] reduce code in createTargetReduction(); NFC
The switch duplicated the translation in getRecurrenceBinOp().
This code is still weird because it translates to the TTI
ReductionFlags for min/max, but then createSimpleTargetReduction()
converts that back to RecurrenceDescriptor::MinMaxRecurrenceKind.
More information about the All-commits
mailing list