Since the load already does the extension, there is no extra cost (previously returned 2).
This affects ~5 loop vectorizer decisions, seemingly for the better. See
Paths
| Differential D54028
[SystemZ::TTI] Let i8/i16 uint/sint to fp conversions cost 1 if operand is a load. ClosedPublic Authored by jonpa on Nov 2 2018, 12:43 AM.
Revision Contents
Diff 172314 lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
test/Analysis/CostModel/SystemZ/fp-cast.ll
|