[ARM][LowOverheadLoops] Change predicate inspection
authorSam Parker <sam.parker@arm.com>
Fri, 10 Jan 2020 14:47:29 +0000 (14:47 +0000)
committerSam Parker <sam.parker@arm.com>
Tue, 14 Jan 2020 11:47:34 +0000 (11:47 +0000)
commitbad6032bc15fa8d16b67b86ef2b2fe48724e756e
tree4e5880a52425d343b3e132e60b264865148920b3
parentd94d079a6a5b12156e4b818c8ba46eb143f335b9
[ARM][LowOverheadLoops] Change predicate inspection

Use the already provided helper function to get the operand type so
that we can detect whether the vpr is being used as a predicate or
not. Also use existing helpers to get the predicate indices when we
converting the vpt blocks. This enables us to support both types of
vpr predicate operand.

Differential Revision: https://reviews.llvm.org/D72504
llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp
llvm/test/CodeGen/Thumb2/LowOverheadLoops/vmaxmin_vpred_r.mir [new file with mode: 0644]