[PATCH] D36763: [InstCombine] Teach canEvaluateZExtd and canEvaluateTruncated to handle vector shifts with splat shift amount

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 15 15:38:03 PDT 2017


spatel added inline comments.


================
Comment at: lib/Transforms/InstCombine/InstCombineCasts.cpp:360
+  }
   case Instruction::LShr:
     // If this is a truncate of a logical shr, we can truncate it to a smaller
----------------
I think you want to brace this case same as the rest.


https://reviews.llvm.org/D36763





More information about the llvm-commits mailing list