diff options
author | Sanjay Patel <spatel@rotateright.com> | 2017-04-26 20:26:46 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2017-04-26 20:26:46 +0000 |
commit | a0547c3d9f71ae721eab6fb9f2dd4bd2c8d75223 (patch) | |
tree | 5aba469bc6d533368442262979c3fbdac0fb6c61 /clang/unittests/Basic/SourceManagerTest.cpp | |
parent | 2a906e1b34c39280947a1c9afbf2605c081c4376 (diff) | |
download | llvm-a0547c3d9f71ae721eab6fb9f2dd4bd2c8d75223.zip llvm-a0547c3d9f71ae721eab6fb9f2dd4bd2c8d75223.tar.gz llvm-a0547c3d9f71ae721eab6fb9f2dd4bd2c8d75223.tar.bz2 |
[DAGCombiner] add (sext i1 X), 1 --> zext (not i1 X)
Besides better codegen, the motivation is to be able to canonicalize this pattern
in IR (currently we don't) knowing that the backend is prepared for that.
This may also allow removing code for special constant cases in
DAGCombiner::foldSelectOfConstants() that was added in D30180.
Differential Revision: https://reviews.llvm.org/D31944
llvm-svn: 301457
Diffstat (limited to 'clang/unittests/Basic/SourceManagerTest.cpp')
0 files changed, 0 insertions, 0 deletions