[all-commits] [llvm/llvm-project] 8eb2f8: [CodeGenPrepare] Fold br(freeze(icmp x, const)) to...
Juneyoung Lee via All-commits
all-commits at lists.llvm.org
Wed Mar 11 11:16:21 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 8eb2f865c3034934231b1fb3471960191a6f754f
https://github.com/llvm/llvm-project/commit/8eb2f865c3034934231b1fb3471960191a6f754f
Author: Juneyoung Lee <aqjune at gmail.com>
Date: 2020-03-12 (Thu, 12 Mar 2020)
Changed paths:
M llvm/lib/CodeGen/CodeGenPrepare.cpp
A llvm/test/Transforms/CodeGenPrepare/X86/freeze-icmp.ll
Log Message:
-----------
[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
More information about the All-commits
mailing list