[LoopUtils] reorder logic for creating reduction; NFC
authorSanjay Patel <spatel@rotateright.com>
Mon, 4 Jan 2021 20:10:03 +0000 (15:10 -0500)
committerSanjay Patel <spatel@rotateright.com>
Mon, 4 Jan 2021 21:05:02 +0000 (16:05 -0500)
commit58b6c5d932a0d435ddfd13f4f5b011207e64297f
tree5be93c082b25abc45a673117ca122053def1f702
parent92be640bd7d4fbc8e032a0aa81381a0246efa0be
[LoopUtils] reorder logic for creating reduction; NFC

If we are using a shuffle reduction, we don't need to
go through the switch on opcode - return early.
llvm/lib/Transforms/Utils/LoopUtils.cpp