[PATCH] D52548: Stop instcombining introducing undef's in div/rem instructions.
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 28 01:57:13 PDT 2018
lebedev.ri added inline comments.
================
Comment at: lib/Transforms/InstCombine/InstCombineVectorOps.cpp:874
+/// the original vector width.
+static bool ShuffleMaskWidens(Value *V, ArrayRef<int> Mask) {
+ Type *Ty = V->getType();
----------------
I think this should to into `lib/IR/Instructions.cpp`, somewhere around the `ShuffleVectorInst::isIdentityMask()`?
(`isWideningMask()`)
================
Comment at: test/Transforms/InstCombine/stop_bad_undef_propagation.ll:4
-; For each of the div/rem integer instructions we test 3 different variants for
-; how an undef value could be back propagated:
----------------
Is it intentional that the test coverage changes?
https://reviews.llvm.org/D52548
More information about the llvm-commits
mailing list