[all-commits] [llvm/llvm-project] a82a28: [AArch64][GlobalISel] Fix one use check in getTest...

Jessica Paquette via All-commits all-commits at lists.llvm.org
Wed Feb 5 09:54:59 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a82a28ae12ae06e6ef1b8364f465e9ea5218fe8a
      https://github.com/llvm/llvm-project/commit/a82a28ae12ae06e6ef1b8364f465e9ea5218fe8a
  Author: Jessica Paquette <jpaquette at apple.com>
  Date:   2020-02-05 (Wed, 05 Feb 2020)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/opt-fold-ext-tbz-tbnz.mir
    M llvm/test/CodeGen/AArch64/GlobalISel/opt-fold-shift-tbz-tbnz.mir

  Log Message:
  -----------
  [AArch64][GlobalISel] Fix one use check in getTestBitReg

(1) The check needs to be on the 0th operand of whatever we're folding
(2) Checks for validity should happen before we change the bit

Fixes a bug which caused MultiSource/Applications/JM/lencod to fail at -O3.

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




More information about the All-commits mailing list