Go to file
Hal Finkel 4104a1a346 [PowerPC] Handle cmp op promotion for SELECT[_CC] nodes in PPCTL::DAGCombineExtBoolTrunc
PPCTargetLowering::DAGCombineExtBoolTrunc contains logic to remove unwanted
truncations and extensions when dealing with nodes of the form:
  zext(binary-ops(binary-ops(trunc(x), trunc(y)), ...)

There was a FIXME in the implementation (now removed) regarding the fact that
the function would abort the transformations if any of the non-output operands
of a SELECT or SELECT_CC node would need to be promoted (because they were
also output operands, for example). As a result, we continued to generate
unnecessary zero-extends for code such as this:

  unsigned foo(unsigned a, unsigned b) {
    return  (a <= b) ? a : b;
  }

which would produce:

  cmplw 0, 3, 4
  isel 3, 4, 3, 1
  rldicl 3, 3, 0, 32
  blr

and now we produce:

  cmplw 0, 3, 4
  isel 3, 4, 3, 1
  blr

which is better in the obvious way.

llvm-svn: 224213
2014-12-14 05:53:19 +00:00
clang Lex: Don't crash if both conflict markers are on the same line 2014-12-14 04:53:11 +00:00
clang-tools-extra Update to match clang r223913. 2014-12-10 03:10:06 +00:00
compiler-rt Use the newer python syntax for exceptions 2014-12-13 02:46:56 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Don't include <stddef.h> 2014-11-18 14:19:27 +00:00
libcxx Add option to turn off installation of headers. 2014-12-12 22:52:58 +00:00
libcxxabi Use the newer python syntax for exceptions 2014-12-13 02:49:27 +00:00
lld Remove PECOFFLibraryNode. 2014-12-14 05:08:53 +00:00
lldb Make the platform process connect path less chatty. 2014-12-13 05:23:51 +00:00
llgo Update to new bindings. 2014-12-13 02:26:00 +00:00
llvm [PowerPC] Handle cmp op promotion for SELECT[_CC] nodes in PPCTL::DAGCombineExtBoolTrunc 2014-12-14 05:53:19 +00:00
openmp I apologise in advance for the size of this check-in. At Intel we do 2014-10-07 16:25:50 +00:00
polly Do not run dead code elimination by default 2014-12-10 21:12:23 +00:00