[PATCH] D30081: [PPC] Eliminate more compare instructions using record-form operation

Hiroshi Inoue via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 16 09:52:13 PDT 2017


inouehrs added a comment.

Yes, it becomes just andi. + beq with this patch.
Without opt

  	andi. 3, 3, 10
  	cmplwi	 3, 0
  	beq	 0, .LBB2_2

With opt

  	andi. 3, 3, 10
  	beq	 0, .LBB2_2


https://reviews.llvm.org/D30081





More information about the llvm-commits mailing list