With commodities selling off hard, traders took that as a sign that inflation is starting to be muted. It helped the SPX rally all day.