aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2018-08-09 20:18:42 +0000
committerPhilip Reames <listmail@philipreames.com>2018-08-09 20:18:42 +0000
commitca256d93fb352746a9f1912e1838804a0e1efc4f (patch)
tree8da7883319415a77cda4e04b97e468b85be3e87c /clang/lib/CodeGen/CodeGenModule.cpp
parented4f51755ec7d72a290e6055e5eddc50a93360e3 (diff)
downloadllvm-ca256d93fb352746a9f1912e1838804a0e1efc4f.zip
llvm-ca256d93fb352746a9f1912e1838804a0e1efc4f.tar.gz
llvm-ca256d93fb352746a9f1912e1838804a0e1efc4f.tar.bz2
[LICM] hoist fences out of loops w/o memory operations
The motivating case is an otherwise dead loop with a fence in it. At the moment, this goes all the way through the optimizer and we end up emitting an entirely pointless loop on x86. This case may seem a bit contrived, but we've seen it in real code as the result of otherwise reasonable lowering strategies combined w/thread local memory optimizations (such as escape analysis). To handle this simple case, we can teach LICM to hoist must execute fences when there is no other memory operation within the loop. Differential Revision: https://reviews.llvm.org/D50489 llvm-svn: 339378
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions