[llvm] [XCOFF] Use RLDs to print branches even without -r (PR #74342)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 20 06:57:29 PST 2023
================
@@ -1292,6 +1294,8 @@ collectLocalBranchTargets(ArrayRef<uint8_t> Bytes, MCInstrAnalysis *MIA,
// So far only supports PowerPC and X86.
if (!STI->getTargetTriple().isPPC() && !STI->getTargetTriple().isX86())
return;
+ const bool isXCOFF = STI->getTargetTriple().isOSBinFormatXCOFF();
+ const bool isPPC = STI->getTargetTriple().isPPC();
----------------
stephenpeckham wrote:
I don't like to move const variables inside a loop, because I would need to analyze the initialization to make sure the compiler can initialize the variables once, rather than each time through the loop. I rearranged the code a bit.
https://github.com/llvm/llvm-project/pull/74342
More information about the llvm-commits
mailing list