aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ModuloSchedule.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2021-06-25 11:36:28 -0400
committerSanjay Patel <spatel@rotateright.com>2021-06-25 12:14:07 -0400
commit1076b6c4f022a024a54af9e6a0e9997472cb89ef (patch)
tree69d09f8124224c1a9e982edbf113cdd93538fe75 /llvm/lib/CodeGen/ModuloSchedule.cpp
parentaeab9d9570ac8cb554aff6e1af24a471fdf5b4e5 (diff)
downloadllvm-1076b6c4f022a024a54af9e6a0e9997472cb89ef.zip
llvm-1076b6c4f022a024a54af9e6a0e9997472cb89ef.tar.gz
llvm-1076b6c4f022a024a54af9e6a0e9997472cb89ef.tar.bz2
[Analysis] use better version of getLibFunc to check for alloc/free calls
There's no reason to use the weaker name-only analysis when we have a function prototype to check (in fact, we probably should not even have that name-only function exposed for general use, but removing it requires auditing all of the callers). The version of getLibFunc that takes a Function argument also does some prototype checking to make sure the arguments/return type match the expected signature of a real library call. This is NFC-intended because the code in MemoryBuiltins does its own function signature checking. For now, that means there may be some redundancy in the checking, but that should not be above the noise for compile-time. Ideally, we can move the checks to a single location. There's still a hole in the logic that allows the example in https://llvm.org/PR50846 to cause a compiler crash.
Diffstat (limited to 'llvm/lib/CodeGen/ModuloSchedule.cpp')
0 files changed, 0 insertions, 0 deletions