aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorJuneyoung Lee <aqjune@gmail.com>2020-03-10 01:37:36 +0900
committerJuneyoung Lee <aqjune@gmail.com>2020-03-12 03:16:15 +0900
commit8eb2f865c3034934231b1fb3471960191a6f754f (patch)
tree157eb4c733cdf460f8e61bd4a3356497055661dc /clang/lib/Lex/ModuleMap.cpp
parented77efeff18c0c894c51d246a2e81b565ec71af9 (diff)
downloadllvm-8eb2f865c3034934231b1fb3471960191a6f754f.zip
llvm-8eb2f865c3034934231b1fb3471960191a6f754f.tar.gz
llvm-8eb2f865c3034934231b1fb3471960191a6f754f.tar.bz2
[CodeGenPrepare] Fold br(freeze(icmp x, const)) to br(icmp(freeze x, const))
Summary: This patch helps CodeGenPrepare move freeze into the icmp when it is used by branch. It reenables generation of efficient conditional jumps. This is only done when at least one of icmp's operands is constant to prevent the transformation from increasing # of freeze instructions. Performance degradation of MultiSource/Benchmarks/Ptrdist/yacr2/yacr2.test is resolved with this patch. Checked with Alive2 Reviewers: reames, fhahn, nlopes Reviewed By: reames Subscribers: jdoerfert, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D75859
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions