[PATCH] D88624: [GlobalISel][AArch64] Don't emit cset for G_FCMPs feeding into G_BRCONDs

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 30 17:17:08 PDT 2020


paquette created this revision.
paquette added a reviewer: aemerson.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls, rovka.
Herald added a project: LLVM.
paquette requested review of this revision.

Similar to the FP case in `AArch64TargetLowering::LowerBR_CC`.

Instead of emitting the csets + a tbnz, just emit a compare + bcc (or two bccs, depending on the condition code)

This improves cases like this: https://godbolt.org/z/v8hebx

This is a 0.1% geomean code size improvement for CTMark at -O3.


https://reviews.llvm.org/D88624

Files:
  llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/fold-brcond-fcmp.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88624.295438.patch
Type: text/x-patch
Size: 18054 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201001/2259fd40/attachment.bin>


More information about the llvm-commits mailing list