[PATCH] D67345: [InstCombine] Allow values with multiple users in SimplifyDemandedVectorElts

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 9 08:21:43 PDT 2019


arsenm added inline comments.


================
Comment at: lib/Transforms/InstCombine/InstCombineVectorOps.cpp:294
+          ExtractElementInst *EEI = dyn_cast<ExtractElementInst>(U.getUser());
+          ConstantInt *EEIIndexC = EEI ? dyn_cast<ConstantInt>(EEI->getIndexOperand()) : nullptr;
+
----------------
arsenm wrote:
> dyn_cast_or_null
Nevermind, this isn't quite that


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67345/new/

https://reviews.llvm.org/D67345





More information about the llvm-commits mailing list