Go to file
Hal Finkel 10aac5fd0e [SelectionDAG] Swap commutative binops before constant-based folding
In searching for a fix for the underlying code-quality bug highlighted by
r246937 (that SDAG simplification can lead to us generating an ISD::OR node
with a constant zero LHS), I ran across this:

We generically canonicalize commutative binary-operation nodes in SDAG getNode
so that, if only one operand is a constant, it will be on the RHS.  However, we
were doing this only after a bunch of constant-based simplification checks that
all assume this canonical form (that any constant will be on the RHS). Moving
the operand-swapping canonicalization prior to these checks seems like the
right thing to do (and, as it turns out, causes SDAG to completely fold away the
computation in test/CodeGen/ARM/2012-11-14-subs_carry.ll, just like InstCombine
would do).

llvm-svn: 246938
2015-09-06 05:42:13 +00:00
clang Index: expose visibility attribute 2015-09-05 18:53:43 +00:00
clang-tools-extra Avoid repeated replacements on loop-convert check. 2015-09-04 21:37:05 +00:00
compiler-rt [asan] Detect asanwrapper binary in android tests. 2015-09-04 22:39:21 +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 Update mailing list reference. 2015-08-24 22:43:24 +00:00
libcxx Try and fix links again. Seems to be a sphinx version issue. 2015-09-05 07:20:53 +00:00
libcxxabi Convert LIBCXXABI_BUILD_32_BITS to LLVM_BUILD_32_BITS. 2015-09-01 01:02:06 +00:00
libunwind unwind: cleanup -Wunused-parameter 2015-09-01 04:29:03 +00:00
lld COFF: Split doICF(). No functionality change. 2015-09-05 23:06:32 +00:00
lldb Fix Makefile build 2015-09-05 20:01:56 +00:00
llgo [llgo] drop debug/DIBuilder.Declare 2015-09-01 11:52:37 +00:00
llvm [SelectionDAG] Swap commutative binops before constant-based folding 2015-09-06 05:42:13 +00:00
openmp Remove duplicate of num_threads assignment. 2015-09-02 20:28:50 +00:00
polly Add some more documentation and structure to the collection of subtree references 2015-09-05 15:45:25 +00:00