diff options
author | Zequan Wu <zequanwu@google.com> | 2020-05-29 12:15:07 -0700 |
---|---|---|
committer | Zequan Wu <zequanwu@google.com> | 2020-05-29 12:31:06 -0700 |
commit | 80e107ccd088a2705d0e776799a8815a58061cb3 (patch) | |
tree | f697f4807d0544468fbc8a9f219758837ad71d24 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 6f56a586c505bd587106a9b94388d70efb88155b (diff) | |
download | llvm-80e107ccd088a2705d0e776799a8815a58061cb3.zip llvm-80e107ccd088a2705d0e776799a8815a58061cb3.tar.gz llvm-80e107ccd088a2705d0e776799a8815a58061cb3.tar.bz2 |
Add NoMerge MIFlag to avoid MIR branch folding
Let the codegen recognized the nomerge attribute and disable branch folding when the attribute is given
Differential Revision: https://reviews.llvm.org/D79537
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 7afa61f..987de0c 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -1595,6 +1595,8 @@ void MachineInstr::print(raw_ostream &OS, ModuleSlotTracker &MST, OS << "exact "; if (getFlag(MachineInstr::NoFPExcept)) OS << "nofpexcept "; + if (getFlag(MachineInstr::NoMerge)) + OS << "nomerge "; // Print the opcode name. if (TII) |