[PATCH] D86789: [DAGCombiner] Fold an AND of a masked load into a zext_masked_load
Sam Tebbs via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 1 04:13:37 PDT 2020
samtebbs added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:5299
+ bool ValidZExt = true;
+ for (unsigned int i = 0; i < BVec->getNumOperands(); i++) {
+ SDValue Operand = BVec->getOperand(i);
----------------
dmgreen wrote:
> Can this make use of the BuildVectorSDNode::getConstantSplatNode or isBuildVectorOfConstantSDNodes or something like it?
Using that is much better, thanks.
================
Comment at: llvm/test/CodeGen/Thumb2/mve-zext-masked-load.ll:2
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc -mtriple=thumbv8.1m.main-none-none-eabi -mattr=+mve.fp,+fp64 -verify-machineinstrs -o - %s | FileCheck %s
+
----------------
dmgreen wrote:
> It can be good to show before and after in the tests, to make the differences clearer.
I've added extra checks to show what was generated before.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86789/new/
https://reviews.llvm.org/D86789
More information about the llvm-commits
mailing list