[X86] Modify LOOP*, HLT control flow attributes
authorAmir Ayupov <aaupov@fb.com>
Fri, 2 Jul 2021 17:26:22 +0000 (10:26 -0700)
committerCraig Topper <craig.topper@sifive.com>
Fri, 2 Jul 2021 17:34:29 +0000 (10:34 -0700)
commit884bc6a6ed95befa128e4bcb1a1e64cf39d73117
tree7e6d463d542bd4057c41fce2be93a60b038ac7a4
parent7f7e4aed21c22c8bcf9bebdff38ed2e582b4d434
[X86] Modify LOOP*, HLT control flow attributes

Add missing control flow attributes:
- LOOP*: isBranch, isTerminator
- HLT: isTerminator

This helps downstream disassemblers (such as BOLT) reconstruct the control
flow graph more accurately.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D102297
llvm/lib/Target/X86/X86InstrControl.td
llvm/lib/Target/X86/X86InstrSystem.td