diff options
author | Craig Topper <craig.topper@intel.com> | 2019-05-13 22:17:13 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2019-05-13 22:17:13 +0000 |
commit | e2966473ddf3fcae3b88e65886b9ac7a46bfbe93 (patch) | |
tree | 84c84bc6ec06ee3aa084ad07a8b5b9c4798bb805 /lldb/packages/Python/lldbsuite/test/python_api/thread/main2.cpp | |
parent | 946957189d6b43a3d2079403633c183224813f95 (diff) | |
download | bcm5719-llvm-e2966473ddf3fcae3b88e65886b9ac7a46bfbe93.tar.gz bcm5719-llvm-e2966473ddf3fcae3b88e65886b9ac7a46bfbe93.zip |
[X86] Use ISD::MERGE_VALUES to return from lowerAtomicArith instead of calling ReplaceAllUsesOfValueWith and returning SDValue().
Returning SDValue() makes the caller think that nothing happened and it will
end up executing the Expand path. This generates extra nodes that will need to
be pruned as dead code.
Returning an ISD::MERGE_VALUES will tell the caller that we'd like to make a
change and it will take care of replacing uses. This will prevent falling into
the Expand path.
llvm-svn: 360627
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread/main2.cpp')
0 files changed, 0 insertions, 0 deletions