[all-commits] [llvm/llvm-project] 9f7873: [SCEVExpander] Reuse removePointerBase() for canon...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Sun Aug 29 12:12:52 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9f7873784dcce4177a759fc657b267d2f189bcf0
https://github.com/llvm/llvm-project/commit/9f7873784dcce4177a759fc657b267d2f189bcf0
Author: Nikita Popov <nikita.ppv at gmail.com>
Date: 2021-08-29 (Sun, 29 Aug 2021)
Changed paths:
M llvm/include/llvm/Analysis/ScalarEvolution.h
M llvm/lib/Analysis/ScalarEvolution.cpp
M llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
Log Message:
-----------
[SCEVExpander] Reuse removePointerBase() for canonical addrecs
ExposePointerBase() in SCEVExpander implements basically the same
functionality as removePointerBase() in SCEV, so reuse it.
The SCEVExpander code assumes that the pointer operand on adds is
the last one -- I'm not sure that always holds. As such this might
not be strictly NFC.
More information about the All-commits
mailing list