[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:17:44 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;
+
----------------
dyn_cast_or_null
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