[PATCH] D141075: [SelectionDAG] Implicitly truncate known bits in SPLAT_VECTOR
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 5 12:12:54 PST 2023
craig.topper added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:2984
+ // SPLAT_VECTOR.
+ Known = computeKnownBits(SrcOp, Depth + 1).extractBits(BitWidth, 0);
break;
----------------
Why `extractBits` instead of `trunc`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141075/new/
https://reviews.llvm.org/D141075
More information about the llvm-commits
mailing list