PPC: Teach FMA mutate to respect register classes.
authorKyle Butt <kyle+llvm@iteratee.net>
Thu, 10 Dec 2015 21:28:40 +0000 (21:28 +0000)
committerKyle Butt <kyle+llvm@iteratee.net>
Thu, 10 Dec 2015 21:28:40 +0000 (21:28 +0000)
commit28b01a51b36c782a77923156807ec0ebabd60059
tree0603a403901a44e05b4c911e507ee5dd28e6fce7
parentdbdec57b56eec23756b42fe096d315aafb8ec495
PPC: Teach FMA mutate to respect register classes.

This was causing bad code gen and assembly that won't assemble, as
mixed altivec and vsx code would end up with a vsx high register
assigned to an altivec instruction, which won't work. Constraining the
classes allows the optimization to proceed.

llvm-svn: 255299
llvm/lib/Target/PowerPC/PPCVSXFMAMutate.cpp
llvm/test/CodeGen/PowerPC/fma-mutate-register-constraint.ll [new file with mode: 0644]