[PATCH] [PowerPC] Change liveness testing in VSX FMA mutation pass

Bill Schmidt wschmidt at linux.vnet.ibm.com
Fri Oct 17 13:02:03 PDT 2014


Hi hfinkel, seurer,

With VSX enabled, LLVM crashes when compiling test/CodeGen/PowerPC/fma.ll.  I traced this to the liveness test that's removed in this patch.  The interval test is designed to only work for virtual registers, but in this case the AddendSrcReg is physical.  Since there is already a walk of the MIs between the AddendMI and the FMA, I added a check for def/kill of the AddendSrcReg in that loop and removed the extra liveness test.

There may well be a better way of doing this, so please redirect me if so...

Thanks,
Bill

http://reviews.llvm.org/D5847

Files:
  lib/Target/PowerPC/PPCInstrInfo.cpp
  test/CodeGen/PowerPC/fma.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5847.15095.patch
Type: text/x-patch
Size: 4875 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141017/aa96576d/attachment.bin>


More information about the llvm-commits mailing list