aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorYaxun (Sam) Liu <yaxun.liu@amd.com>2020-03-11 16:40:28 -0400
committerYaxun (Sam) Liu <yaxun.liu@amd.com>2020-03-18 14:48:04 -0400
commit6f79f80e6e473e1b28ee678cc11bc44efb2448a4 (patch)
tree67d7807bd8da70076da109aee68edb82a2a696f3 /llvm/lib/Analysis/ValueTracking.cpp
parentf8e8f0a6038bd761da237b3e7dee5f94b7041b5a (diff)
downloadllvm-6f79f80e6e473e1b28ee678cc11bc44efb2448a4.zip
llvm-6f79f80e6e473e1b28ee678cc11bc44efb2448a4.tar.gz
llvm-6f79f80e6e473e1b28ee678cc11bc44efb2448a4.tar.bz2
[HIP] Fix duplicate clang -cc1 options on MSVC toolchain
HIPToolChain::TranslateArgs call TranslateArgs of host toolchain with the input args to get a list of derived args called DAL, then go through the input args by itself and append them to DAL. This assumes that the host toolchain should not append any unchanged args to DAL, otherwise there will be duplicates since HIPToolChain will append it again. This works for GNU toolchain since it returns an empty list for DAL. However, MSVC toolchain will append unchanged args to DAL, which causes duplicate args. This patch let MSVC toolchain not append unchanged args for HIP offloading kind, which fixes this issue. Differential Revision: https://reviews.llvm.org/D76032
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
0 files changed, 0 insertions, 0 deletions