[all-commits] [llvm/llvm-project] ba2b34: [DSE] Simplify isGuaranteedLoopInvariant() (NFC)
Nikita Popov via All-commits
all-commits at lists.llvm.org
Fri Dec 24 00:41:22 PST 2021
Author: Nikita Popov <npopov at redhat.com>
Date: 2021-12-24 (Fri, 24 Dec 2021)
[DSE] Simplify isGuaranteedLoopInvariant() (NFC)
We have Value->stripInBoundsConstantOffsets() which does what we
want here, but the inbounds requirement isn't actually necessary.
We should probably add Value->stripConstantOffsets() as well.
More information about the All-commits