]> granicus.if.org Git - llvm/commit
DAG: Match truncated rotation (PR35487)
authorHans Wennborg <hans@hanshq.net>
Mon, 4 Dec 2017 20:39:57 +0000 (20:39 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 4 Dec 2017 20:39:57 +0000 (20:39 +0000)
commit1e96e811d73d842822474eb8bc710c0849d06702
tree1fde9ac9eb8fadc64cceeb975f2f89191539a6b1
parente35711676bd03eb1caf7a9cb41179d82121c0457
DAG: Match truncated rotation (PR35487)

If the truncation has been pushed past the or-node, look through it and
truncate afterwards.

Differential revision: https://reviews.llvm.org/D40792

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319692 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/rotate.ll