[PATCH] D59971: [GlobalISel] Add legalization support for non-power-2 loads and stores
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 17 02:41:24 PDT 2019
arsenm added inline comments.
================
Comment at: llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp:1352-1357
+ MachineMemOperand *NewLargeMMO = MF.getMachineMemOperand(
+ MMO->getPointerInfo(), MMO->getFlags(), Size1 / 8, MMO->getAlignment(),
+ MMO->getAAInfo(), MMO->getRanges(), MMO->getSyncScopeID(),
+ MMO->getOrdering(), MMO->getFailureOrdering());
+ MachineMemOperand *NewSmallMMO =
+ MF.getMachineMemOperand(NewLargeMMO, Size2 / 8, Size1 / 8);
----------------
Why can't uses use getMachineMemOperand for both halves from the original?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59971/new/
https://reviews.llvm.org/D59971
More information about the llvm-commits
mailing list