aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2022-04-11 09:37:41 -0700
committerCraig Topper <craig.topper@sifive.com>2022-04-11 09:49:36 -0700
commit28cb508195be1b005a7e1cb53a75bff0dd4c3bcb (patch)
tree3ee9a3251f1281acf6d58e14ab8b687e16c2416d /llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp
parent64e4dd329c0c9d4c462594df004afd3102a54412 (diff)
downloadllvm-28cb508195be1b005a7e1cb53a75bff0dd4c3bcb.zip
llvm-28cb508195be1b005a7e1cb53a75bff0dd4c3bcb.tar.gz
llvm-28cb508195be1b005a7e1cb53a75bff0dd4c3bcb.tar.bz2
[TargetLowering][RISCV] Allow truncation when checking if the arguments of a setcc are splats.
We're just trying to canonicalize here and won't be using the constant value returned. The attached test changes are because we were previously commuting a seteq X, (splat_vector 0) because we also have (sub 0, X). The 0 is larger than the element type so we don't detect it as a splat without the AllowTruncation flag. By preventing the commute we are able to match it to the vmseq.vx instruction during isel. We only look for constants on the RHS in isel. Reviewed By: spatel Differential Revision: https://reviews.llvm.org/D123256
Diffstat (limited to 'llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp')
0 files changed, 0 insertions, 0 deletions