[PATCH] D43323: [NFC] Consolidate six getPointerOperand() utility functions into one place

Hideki Saito via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 14 15:27:08 PST 2018


hsaito created this revision.
hsaito added reviewers: hfinkel, mkuper.
Herald added a subscriber: llvm-commits.

See http://lists.llvm.org/pipermail/llvm-dev/2018-February/120999.html for llvm-dev discussions

There are six separate instances of getPointerOperand() utility. LoopVectorize.cpp has one of them,
and I don't want to create a 7th one while I'm trying to move LoopVectorizationLegality into a separate file
(eventual objective is to move it to Analysis tree).

I won't insist in having the utility in Instructions.h. Creating include/llvm/IR/InstructionUtils.h is a viable alternative to consider.


Repository:
  rL LLVM

https://reviews.llvm.org/D43323

Files:
  include/llvm/IR/Instructions.h
  lib/Analysis/Delinearization.cpp
  lib/Analysis/DependenceAnalysis.cpp
  lib/Analysis/LoopAccessAnalysis.cpp
  lib/Transforms/Scalar/EarlyCSE.cpp
  lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
  lib/Transforms/Vectorize/LoopVectorize.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43323.134329.patch
Type: text/x-patch
Size: 17885 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180214/b40302b2/attachment-0001.bin>


More information about the llvm-commits mailing list