This is a NFC patch. In the patch I:
- make member function const where possible,
- use LLVM_DEBUG to print debug tracers rather than a custom option,
- pass by reference to avoid null checking
- code formatting
Paths
| Differential D89895
[NFC][PartialInliner]: Clean up code ClosedPublic Authored by etiotto on Oct 21 2020, 9:40 AM.
Details Summary This is a NFC patch. In the patch I:
Diff Detail
Event TimelineWhitney added a child revision: D89911: [PartialInliner]: Handle code regions in a switch stmt cases.Oct 21 2020, 4:05 PM etiotto retitled this revision from [NFC][Partial Inline]: Clean up code to [NFC][PartialInliner]: Clean up code .Oct 22 2020, 8:01 AM This revision is now accepted and ready to land.Oct 22 2020, 8:11 AM Comment Actions Note: this failure looks bogus to me as it also happens in other PRs like https://reviews.llvm.org/D89964 linux > HWAddressSanitizer-x86_64.TestCases::sizes.cpp Script: -- : 'RUN: at line 3'; /mnt/disks/ssd0/agent/llvm-project/build/./bin/clang --driver-mode=g++ -m64 -gline-tables-only -fsanitize=hwaddress -fuse-ld=lld -mcmodel=large -mllvm -hwasan-globals -mllvm -hwasan-use-short-granules -mllvm -hwasan-instrument-landing-pads=0 -mllvm -hwasan-instrument-personality-functions /mnt/disks/ssd0/agent/llvm-project/compiler-rt/test/hwasan/TestCases/sizes.cpp -nostdlib++ -lstdc++ -o /mnt/disks/ssd0/agent/llvm-project/build/projects/compiler-rt/test/hwasan/X86_64/TestCases/Output/sizes.cpp.tmp This revision was landed with ongoing or failed builds.Oct 22 2020, 11:40 AM Closed by commit rGe6521ce06425: [NFC][PartialInliner]: Clean up code (authored by etiotto). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 300059 llvm/lib/Transforms/IPO/PartialInlining.cpp
|