[all-commits] [llvm/llvm-project] fe1963: [FunctionAttrs] Use MemoryLocation::getOrNone() wh...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Fri Sep 23 04:57:30 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fe196380ccd4f2ed0e78151e11387a299a72b337
https://github.com/llvm/llvm-project/commit/fe196380ccd4f2ed0e78151e11387a299a72b337
Author: Nikita Popov <npopov at redhat.com>
Date: 2022-09-23 (Fri, 23 Sep 2022)
Changed paths:
M llvm/lib/Transforms/IPO/FunctionAttrs.cpp
M llvm/test/Transforms/FunctionAttrs/nosync.ll
Log Message:
-----------
[FunctionAttrs] Use MemoryLocation::getOrNone() when infering memory attrs
MemoryLocation::getOrNone() already has the necessary logic to
handle different instruction types. Use it, rather than repeating
a subset of the logic. This adds support for previously unhandled
instructions like atomicrmw.
More information about the All-commits
mailing list