llvm-project/llvm/test/CodeGen
Daniel Sanders 452c8aec61 [globalisel][tablegen] Add support for (set $dst, 1) and test X86's OptForSize predicate.
Summary:
It's rare but a small number of patterns use IntInit's at the root of the match.
On X86, one such rule is enabled by the OptForSize predicate and causes the
compiler to use the smaller:
	%0 = MOV32r1
instead of the usual:
	%0 = MOV32ri 1

This patch adds support for matching IntInit's at the root and uses this as a
test case for the optsize attribute that was implemented in r301750

Reviewers: qcolombet, ab, t.p.northover, rovka, kristof.beyls, aditya_nandakumar

Reviewed By: qcolombet

Subscribers: igorb, llvm-commits

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

llvm-svn: 303678
2017-05-23 19:33:16 +00:00
..
AArch64 [AArch64] Make instruction fusion more aggressive. 2017-05-23 09:33:34 +00:00
AMDGPU [AMDGPU] Convert shl (add) into add (shl) 2017-05-23 15:59:58 +00:00
ARM [GlobalISel] IRTranslator: Translate ConstantStruct 2017-05-19 09:47:02 +00:00
AVR [AVR] When lowering Select8/Select16, put newly generated MBBs in the same spot 2017-05-13 00:22:34 +00:00
BPF [bpf] fix a bug which causes incorrect big endian reloc fixup 2017-05-05 18:05:00 +00:00
Generic [LegacyPassManager] Remove TargetMachine constructors 2017-05-18 17:21:13 +00:00
Hexagon Add extra operand to CALLSEQ_START to keep frame part set up previously 2017-05-09 13:35:13 +00:00
Inputs
Lanai [lanai] Add computeKnownBitsForTargetNode for Lanai. 2017-05-09 18:35:26 +00:00
MIR [IfConversion] Keep the CFG updated incrementally in IfConvertTriangle 2017-05-12 06:28:58 +00:00
MSP430 Elide stores which are overwritten without being observed. 2017-05-16 19:43:56 +00:00
Mips [mips] Support micromips attribute passed by front-end 2017-05-22 12:47:41 +00:00
NVPTX Revert r302938 "Add LiveRangeShrink pass to shrink live range within BB." 2017-05-18 18:50:05 +00:00
PowerPC Summary 2017-05-21 06:00:05 +00:00
SPARC Revert r302938 "Add LiveRangeShrink pass to shrink live range within BB." 2017-05-18 18:50:05 +00:00
SystemZ Elide stores which are overwritten without being observed. 2017-05-16 19:43:56 +00:00
Thumb Elide stores which are overwritten without being observed. 2017-05-16 19:43:56 +00:00
Thumb2 Elide stores which are overwritten without being observed. 2017-05-16 19:43:56 +00:00
WebAssembly [WebAssembly] Fix WebAssemblyOptimizeReturned after r300367 2017-04-17 21:40:28 +00:00
WinEH
X86 [globalisel][tablegen] Add support for (set $dst, 1) and test X86's OptForSize predicate. 2017-05-23 19:33:16 +00:00
XCore In visitSTORE, always use FindBetterChain, rather than only when UseAA is enabled. 2017-03-14 00:34:14 +00:00