aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CommandFlags.cpp
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2021-06-08 10:18:58 +0100
committerDavid Green <david.green@arm.com>2021-06-08 10:18:58 +0100
commitb889c6ee9911b72a58986d528f42dd18cbdf92d7 (patch)
tree1521bcd561d39b671b954748dfe1eebe47e123d3 /llvm/lib/CodeGen/CommandFlags.cpp
parentb34da6ff9c1d72816d0c9b87d5f0e879850bc424 (diff)
downloadllvm-b889c6ee9911b72a58986d528f42dd18cbdf92d7.zip
llvm-b889c6ee9911b72a58986d528f42dd18cbdf92d7.tar.gz
llvm-b889c6ee9911b72a58986d528f42dd18cbdf92d7.tar.bz2
[DAG] Allow isNullOrNullSplat to see truncated zeroes
This sets the AllowTruncation flag on isConstOrConstSplat in isNullOrNullSplat, allowing it to see truncated constant zeroes on architectures such as AArch64, where only a i32.i64 are legal. As a truncation of 0 is always 0, this should always be valid, allowing some extra folding to happen including some of the cases from D103755. Differential Revision: https://reviews.llvm.org/D103756
Diffstat (limited to 'llvm/lib/CodeGen/CommandFlags.cpp')
0 files changed, 0 insertions, 0 deletions