summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/bool-ext-inc.ll
Commit message (Collapse)AuthorAgeFilesLines
* [DAGCombiner] sub X, 0/1 --> add X, 0/-1Sanjay Patel2019-01-301-5/+4
| | | | | | | | | | This extends the existing transform for: add X, 0/1 --> sub X, 0/-1 ...to allow the sibling subtraction fold. This pattern could regress with the proposed change in D57401. llvm-svn: 352680
* [AArch64][x86] add tests for add/sub signbits fold; NFCSanjay Patel2019-01-301-0/+34
| | | | | | | As discussed/shown in D57401, we are missing a fold for subtract of 0/1 --> add 0/-1. llvm-svn: 352678
* [x86] add tests for vector bool math; NFCSanjay Patel2019-01-291-0/+25
| | | | llvm-svn: 352520
* [CodeGen] Unify MBB reference format in both MIR and debug outputFrancis Visoiu Mistrih2017-12-041-7/+7
| | | | | | | | | | | | | | | | As part of the unification of the debug format and the MIR format, print MBB references as '%bb.5'. The MIR printer prints the IR name of a MBB only for block definitions. * find . \( -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" \) -type f -print0 | xargs -0 sed -i '' -E 's/BB#" << ([a-zA-Z0-9_]+)->getNumber\(\)/" << printMBBReference(*\1)/g' * find . \( -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" \) -type f -print0 | xargs -0 sed -i '' -E 's/BB#" << ([a-zA-Z0-9_]+)\.getNumber\(\)/" << printMBBReference(\1)/g' * find . \( -name "*.txt" -o -name "*.s" -o -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" \) -type f -print0 | xargs -0 sed -i '' -E 's/BB#([0-9]+)/%bb.\1/g' * grep -nr 'BB#' and fix Differential Revision: https://reviews.llvm.org/D40422 llvm-svn: 319665
* [X86][AVX] Regenerate tests with constant broadcast commentsSimon Pilgrim2017-07-161-4/+4
| | | | llvm-svn: 308131
* [DAGCombiner] add (sext i1 X), 1 --> zext (not i1 X)Sanjay Patel2017-04-261-25/+17
| | | | | | | | | | | | 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
* [x86] change tests to use sext, not zext; NFCSanjay Patel2017-04-261-7/+8
| | | | | | These are intended to exercise D31944, so we need sexts. llvm-svn: 301412
* [x86] add more tests for potential change in bool math folding; NFCSanjay Patel2017-04-251-10/+64
| | | | | | Also, use AVX2 to show a potential difference for 256-bit vectors. llvm-svn: 301362
* [ARM, x86] add more vector tests for bool math; NFCSanjay Patel2017-04-241-0/+25
| | | | | | | | I'm proposing a fold for increment-of-sexted-bool in: https://reviews.llvm.org/D31944 ...so we need to know what happens in more cases like these. llvm-svn: 301269
* [ARM, x86] add tests to show possible improvement for bool math; NFCSanjay Patel2017-04-101-0/+32
llvm-svn: 299897
OpenPOWER on IntegriCloud