aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopSimplify.cpp
diff options
context:
space:
mode:
authorJingyue Wu <jingyue@google.com>2015-06-09 21:50:32 +0000
committerJingyue Wu <jingyue@google.com>2015-06-09 21:50:32 +0000
commit75589ffcc28258f2d9ff3143e5b2f8351e0848ff (patch)
tree931b656141f62175f3c75aa21f48c95225c872f8 /llvm/lib/Transforms/Utils/LoopSimplify.cpp
parentbc05163f15cdff70cf2be97d8f48af08b5e87ea5 (diff)
downloadllvm-75589ffcc28258f2d9ff3143e5b2f8351e0848ff.zip
llvm-75589ffcc28258f2d9ff3143e5b2f8351e0848ff.tar.gz
llvm-75589ffcc28258f2d9ff3143e5b2f8351e0848ff.tar.bz2
[NVPTX] fix a crash bug in NVPTXFavorNonGenericAddrSpaces
Summary: 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. Test Plan: @nested_const_expr and @rauw in access-non-generic.ll Reviewers: broune, jholewinski Reviewed By: broune, jholewinski Subscribers: jholewinski, llvm-commits Differential Revision: http://reviews.llvm.org/D10345 llvm-svn: 239435
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopSimplify.cpp')
0 files changed, 0 insertions, 0 deletions