llvm.org GIT mirror llvm / 4ddfd12
[Power9] Disable removing extra swaps on P9. On power 8 we sometimes insert swaps to deal with the difference between Little-Endian and Big-Endian. The swap removal pass is supposed to clean up these swaps. On power 9 we don't need this pass since we do not need to insert the swaps in the first place. Commiting on behalf of Stefan Pintilie. Differential Revision: https://reviews.llvm.org/D34627 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307185 91177308-0d34-0410-b5e6-96231b3b80d8 Sean Fertile 2 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
194194 return false;
196196 // If we don't have VSX on the subtarget, don't do anything.
197 // Also, on Power 9 the load and store ops preserve element order and so
198 // the swaps are not required.
197199 const PPCSubtarget &STI = MF.getSubtarget();
198 if (!STI.hasVSX())
200 if (!STI.hasVSX() || !STI.needsSwapsForVSXMemOps())
199201 return false;
201203 bool Changed = false;