llvm-project/llvm/test/CodeGen
Andrea Di Biagio edbf06a767 [AsmPrinter] Remove hidden flag -print-schedule.
This patch removes hidden codegen flag -print-schedule effectively reverting the
logic originally committed as r300311
(https://llvm.org/viewvc/llvm-project?view=revision&revision=300311).

Flag -print-schedule was originally introduced by r300311 to address PR32216
(https://bugs.llvm.org/show_bug.cgi?id=32216). That bug was about adding "Better
testing of schedule model instruction latencies/throughputs".

These days, we can use llvm-mca to test scheduling models. So there is no longer
a need for flag -print-schedule in LLVM. The main use case for PR32216 is
now addressed by llvm-mca.
Flag -print-schedule is mainly used for debugging purposes, and it is only
actually used by x86 specific tests. We already have extensive (latency and
throughput) tests under "test/tools/llvm-mca" for X86 processor models. That
means, most (if not all) existing -print-schedule tests for X86 are redundant.

When flag -print-schedule was first added to LLVM, several files had to be
modified; a few APIs gained new arguments (see for example method
MCAsmStreamer::EmitInstruction), and MCSubtargetInfo/TargetSubtargetInfo gained
a couple of getSchedInfoStr() methods.

Method getSchedInfoStr() had to originally work for both MCInst and
MachineInstr. The original implmentation of getSchedInfoStr() introduced a
subtle layering violation (reported as PR37160 and then fixed/worked-around by
r330615).
In retrospect, that new API could have been designed more optimally. We can
always query MCSchedModel to get the latency and throughput. More importantly,
the "sched-info" string should not have been generated by the subtarget.
Note, r317782 fixed an issue where "print-schedule" didn't work very well in the
presence of inline assembly. That commit is also reverted by this change.

Differential Revision: https://reviews.llvm.org/D57244

llvm-svn: 353043
2019-02-04 12:51:26 +00:00
..
AArch64 [NFC] Make vector types legal in UREM test 2019-02-03 19:38:15 +00:00
AMDGPU GlobalISel: Implement widenScalar for G_UNMERGE_VALUES 2019-02-03 00:07:33 +00:00
ARC
ARM [CodeGen] Don't scavenge non-saved regs in exception throwing functions 2019-02-01 09:23:51 +00:00
AVR [AVR] Insert unconditional branch when inserting MBBs between blocks with fallthrough 2019-01-21 04:32:02 +00:00
BPF [BPF] [BTF] Process FileName with absolute path correctly 2019-02-02 05:54:59 +00:00
Generic [AVR] Remove unneeded XFAILs from the Generic CodeGen tests 2019-01-20 11:16:58 +00:00
Hexagon [PatternMatch] add special-case uaddo matching for increment-by-one (2nd try) 2019-02-03 16:16:48 +00:00
Inputs
Lanai [Targets] Add errors for tiny and kernel codemodel on targets that don't support them 2018-12-07 12:10:23 +00:00
MIR MIR: Reject non-power-of-4 alignments in MMO parsing 2019-01-30 23:09:28 +00:00
MSP430 [MSP430] Fix absolute addressing mode printing in AsmPrinter 2019-01-25 09:14:05 +00:00
Mips GlobalISel: Fix creating MMOs with align 0 2019-01-31 01:38:47 +00:00
NVPTX [NVPTX] Some nvvm.read.ptx.sreg intrinsics should have IntrInaccessibleMemOnly attribute. 2019-01-26 00:28:32 +00:00
PowerPC [PowerPC] adjust test for uaddo change in rL353001 2019-02-03 18:10:16 +00:00
RISCV [RISCV] Implement RV64D codegen 2019-02-01 03:53:30 +00:00
SPARC Replace "no-frame-pointer-*" function attributes with "frame-pointer" 2019-01-14 10:55:55 +00:00
SystemZ [CodeGenPrepare] Handle all debug calls in dupRetToEnableTailCallOpts() 2019-01-29 09:03:35 +00:00
Thumb [ARM] Mark 255 and 65535 as cheap for Thumb1 "And" 2019-02-04 11:58:48 +00:00
Thumb2 Revert r351938 "[ARM] Alter the register allocation order for minsize on Thumb2" 2019-01-23 21:10:48 +00:00
WebAssembly [WebAssembly] Add codegen support for the import_field attribute 2019-02-01 22:27:34 +00:00
WinCFGuard
WinEH [EH] Rename llvm.x86.seh.recoverfp intrinsic to llvm.eh.recoverfp 2019-01-16 00:37:13 +00:00
X86 [AsmPrinter] Remove hidden flag -print-schedule. 2019-02-04 12:51:26 +00:00
XCore Replace "no-frame-pointer-*" function attributes with "frame-pointer" 2019-01-14 10:55:55 +00:00