aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
diff options
context:
space:
mode:
authorAndrew Ng <andrew.ng@sony.com>2024-03-28 11:41:49 +0000
committerGitHub <noreply@github.com>2024-03-28 11:41:49 +0000
commitc9db031c48852af491747dab86ef6f19195eb20d (patch)
tree9e8fc8bbdbde0436873169de8ee15a97cf12392b /llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
parentc13556c0b0aaeb9794d3e2864c8dd9880661f909 (diff)
downloadllvm-c9db031c48852af491747dab86ef6f19195eb20d.zip
llvm-c9db031c48852af491747dab86ef6f19195eb20d.tar.gz
llvm-c9db031c48852af491747dab86ef6f19195eb20d.tar.bz2
[Support] Fix color handling in formatted_raw_ostream (#86700)
The color methods in formatted_raw_ostream were forwarding directly to the underlying stream without considering existing buffered output. This would cause incorrect colored output for buffered uses of formatted_raw_ostream. Fix this issue by applying the color to the formatted_raw_ostream itself and temporarily disabling scanning of any color related output so as not to affect the position tracking. This fix means that workarounds that forced formatted_raw_ostream buffering to be disabled can be removed. In the case of llvm-objdump, this can improve disassembly performance when redirecting to a file by more than an order of magnitude on both Windows and Linux. This improvement restores the disassembly performance when redirecting to a file to a level similar to before color support was added.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopRotationUtils.cpp')
0 files changed, 0 insertions, 0 deletions