OSDN Git Service

[PowerPC] Mark jumps as expensive (using using CR bits)
authorHal Finkel <hfinkel@anl.gov>
Thu, 12 Feb 2015 01:02:52 +0000 (01:02 +0000)
committerHal Finkel <hfinkel@anl.gov>
Thu, 12 Feb 2015 01:02:52 +0000 (01:02 +0000)
commit091acf253b2a15378164354d96c4837d00f411aa
treeb6e52e41f43ef6d58a38ab6172b0e89810aab940
parent6f4e8d27e91952e52b5239cb8abf1ab6a9518279
[PowerPC] Mark jumps as expensive (using using CR bits)

On PowerPC, which has a full set of logical operations on (its multiple sets
of) condition-register bits, it is not profitable to break of complex
conditions feeding a jump into multiple jumps. We can turn off this feature of
CGP/SDAGBuilder by marking jumps as "expensive".

P7 test-suite speedups (no regressions):
MultiSource/Benchmarks/FreeBench/pcompress2/pcompress2
-0.626647% +/- 0.323583%
MultiSource/Benchmarks/Olden/power/power
-18.2821% +/- 8.06481%

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228895 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/no-pref-jumps.ll [new file with mode: 0644]