[PATCH] D78688: [ValueTracking] Handle shufflevector constants in ComputeNumSignBits
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 23 17:57:40 PDT 2020
efriedma marked an inline comment as done.
efriedma added inline comments.
================
Comment at: llvm/test/Transforms/InstCombine/nsw.ll:138
+;
+ %xx = zext <vscale x 2 x i8> %z to <vscale x 2 x i64>
+ %shuf = shufflevector <vscale x 2 x i64> insertelement (<vscale x 2 x i64> undef, i64 1, i32 0), <vscale x 2 x i64> zeroinitializer, <vscale x 2 x i32> zeroinitializer
----------------
huihuiz wrote:
> Not needed, just shuffle(insertelement) + mul will get this crash.
> But not very important.
Since I'm here, might as well add a testcase where we could, in theory, mark the mul as nsw/nuw.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78688/new/
https://reviews.llvm.org/D78688
More information about the llvm-commits
mailing list