aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Parallel.cpp
diff options
context:
space:
mode:
authorMichael Park <mcypark@gmail.com>2020-07-08 10:46:02 -0700
committerMichael Park <mcypark@gmail.com>2020-07-08 10:46:38 -0700
commit6ab3208d779ffb3b32744b0190d7035d4b369173 (patch)
tree23745287d5b564e5669efd61f95a47b7dfd5945a /llvm/lib/Support/Parallel.cpp
parent82206e7fb49d9593d946599b107e8a8ad29a7d22 (diff)
downloadllvm-6ab3208d779ffb3b32744b0190d7035d4b369173.zip
llvm-6ab3208d779ffb3b32744b0190d7035d4b369173.tar.gz
llvm-6ab3208d779ffb3b32744b0190d7035d4b369173.tar.bz2
Remove the unnecessary `is_nothrow_swappable` condition in `swap`.
Thanks to @lewissbaker who pointed out the unnecessary condition in https://reviews.llvm.org/D81954#inline-756872. Since this codepath does not make use of `swap` anyway (that codepath is a different branch), we can safely remove this condition and produce better codegen when all types are nothrow movable but are potentially-throwing swappable. See codegen in https://gcc.godbolt.org/z/uDFZjz Reviewed By: ldionne, #libc Differential Revision: https://reviews.llvm.org/D83274
Diffstat (limited to 'llvm/lib/Support/Parallel.cpp')
0 files changed, 0 insertions, 0 deletions