diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-06-19 12:25:29 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-06-19 12:25:29 +0000 |
commit | 8c49366c9b9d02174c8e1821bbc319275d103fc5 (patch) | |
tree | b03b74a97b76143769c1725004090b7e3e69e6a3 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 85f70baa230f25f965d7e324e7fadad2fe25c819 (diff) | |
download | llvm-8c49366c9b9d02174c8e1821bbc319275d103fc5.zip llvm-8c49366c9b9d02174c8e1821bbc319275d103fc5.tar.gz llvm-8c49366c9b9d02174c8e1821bbc319275d103fc5.tar.bz2 |
[DAGCombiner] Support (shl (ext (shl x, c1)), c2) -> 0 non-uniform folds.
Use matchBinaryPredicate instead of isConstOrConstSplat to let us handle non-uniform shift cases.
This requires us to tweak matchBinaryPredicate to allow it to (optionally) handle constants with different type widths.
llvm-svn: 363792
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions