[llvm] [LV]Support dropping of nneg flag for zext widencast recipes. (PR #74112)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 4 07:38:48 PST 2023


================
@@ -652,6 +652,10 @@ void VPRecipeWithIRFlags::printFlags(raw_ostream &O) const {
     if (GEPFlags.IsInBounds)
       O << " inbounds";
     break;
+  case OperationType::CastOp:
+    if (CastFlags.NonNeg)
+      O << " nneg";
----------------
fhahn wrote:

Can you add a test for printing the flag to `llvm/test/Transforms/LoopVectorize/vplan-printing.ll`?

https://github.com/llvm/llvm-project/pull/74112


More information about the llvm-commits mailing list