[PATCH] [NVPTX] fix a crash bug in NVPTXFavorNonGenericAddrSpaces

Jingyue Wu jingyue at google.com
Tue Jun 9 13:37:56 PDT 2015


Hi broune, jholewinski,

We used to assume V->RAUW only modifies the operand list of V's user.
However, if V and V's user are Constants, RAUW may replace and invalidate V's
user entirely.

This patch fixes the above issue by letting the caller replace the
operand instead of calling RAUW on Constants.

http://reviews.llvm.org/D10345

Files:
  lib/Target/NVPTX/NVPTXFavorNonGenericAddrSpaces.cpp
  test/CodeGen/NVPTX/access-non-generic.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10345.27397.patch
Type: text/x-patch
Size: 9061 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150609/4afa76b7/attachment.bin>


More information about the llvm-commits mailing list