Adds support to set the hot/cold new hint values with an option. Change
the defaults slightly to make it easier to distinguish between compiler
synthesized vs manually inserted calls to the interface.
Details
Details
- Reviewers
davidxl - Commits
- rG19c5740a5a3a: [MemProf] Set hot/cold new values with option
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp | ||
---|---|---|
62 | Is 0 allowed ? |
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp | ||
---|---|---|
62 | Yes. The 0 value to getAsInteger is the radix value, and 0 means autosense (so it will accept e.g. hex, octal, etc with the appropriate prefix on the value). |
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp | ||
---|---|---|
62 | My question is if value zero is allowed to be specified as a possible value or it is treated as a reserved value. |
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp | ||
---|---|---|
62 | It is allowed |
Is 0 allowed ?