[PATCH] D103856: [Attributor] Introduce a helper do deal with constant type mismatches
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 7 16:53:50 PDT 2021
jdoerfert created this revision.
jdoerfert added reviewers: kuter, sstefan1, uenoku, baziotis.
Herald added subscribers: ormris, okura, bollu, hiraditya.
Herald added a reviewer: homerdin.
jdoerfert requested review of this revision.
Herald added a subscriber: bbn.
Herald added a project: LLVM.
If we simplify values we sometimes end up with type mismatches. If the
value is a constant we can often cast it though to still allow
propagation. The logic is now put into a helper and it replaces some
ad hoc things we did before.
This also introduces the AA namespace for abstract attribute related
functions and types.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D103856
Files:
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
llvm/test/Transforms/Attributor/ArgumentPromotion/fp80.ll
llvm/test/Transforms/Attributor/IPConstantProp/2009-09-24-byval-ptr.ll
llvm/test/Transforms/Attributor/IPConstantProp/PR16052.ll
llvm/test/Transforms/Attributor/misc_crash.ll
llvm/test/Transforms/Attributor/noreturn_async.ll
llvm/test/Transforms/Attributor/noreturn_sync.ll
llvm/test/Transforms/Attributor/value-simplify.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103856.350450.patch
Type: text/x-patch
Size: 16607 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210607/9423d153/attachment.bin>
More information about the llvm-commits
mailing list