aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorAlex Bradbury <asb@igalia.com>2025-03-19 14:17:42 +0000
committerGitHub <noreply@github.com>2025-03-19 14:17:42 +0000
commitbe0a3b223a10e0a3e588b1d6002581982968f0f4 (patch)
treeb237ad5c422a1a31ca37c184c1dbcdaefeac8d7e /llvm/lib/Transforms/Utils/LoopUtils.cpp
parentbaef6fadbf0e4ddac33c6a8a6275208435f52965 (diff)
downloadllvm-be0a3b223a10e0a3e588b1d6002581982968f0f4.zip
llvm-be0a3b223a10e0a3e588b1d6002581982968f0f4.tar.gz
llvm-be0a3b223a10e0a3e588b1d6002581982968f0f4.tar.bz2
[IR] Allow llvm.experimental.memset.pattern to take any sized type as the pattern argument (#132026)
I initially thought starting with a more narrow definition and later expanding would make more sense. But as pointed out in review for PR #129220, this restriction is generating additional unnecessary work. This patch alters the intrinsic to accept patterns of any type. Future patches will update LoopIdiomRecognize and PreISelIntrinsicLowering to take advantage of this. The verifier will complain if an unsized type is used. I've additionally taken the opportunity to remove a comment from the LangRef about some bit widths potentially not being supported by the target. I don't think this is any more true than it is for arbitrary width loads/stores which don't carry a similar warning that I can see. A verifier check ensures that only sized types are used for the pattern.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions