HomePhabricator

[PowerPC] Fix computation of offset for load-and-splat for permuted loads
ca49a47b8f87Unpublished

Authored by nemanjai on Jul 24 2020, 12:38 PM.

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

[PowerPC] Fix computation of offset for load-and-splat for permuted loads

Unfortunately this is another regression from my canonicalization patch
(1fed131660b2). The patch contained two implicit assumptions:

  1. That we would have a permuted load only if we are loading a partial vector
  2. That a partial vector load would necessarily be as wide as the splat

However, assumption 2 is not correct since it is possible to do a wider
load and only splat a half of it. This patch corrects this assumption by
simply checking if the load is permuted and adjusting the offset if it is.

(cherry picked from commit 7d076e19e31a2a32e357cbdcf0183f88fe1fb0fb)

Details

Committed
hansJul 27 2020, 7:25 AM
Parents
rG152c2b1befb1: [LegalizeTypes] Teach DAGTypeLegalizer::GenWidenVectorLoads to pad with undef…
Branches
Unknown
Tags
Unknown