[all-commits] [llvm/llvm-project] 5f48c1: [AArch64][GlobalISel] Use ZExtValue for zext(xor) ...
Guo-Peilin via All-commits
all-commits at lists.llvm.org
Sun Sep 5 20:15:58 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5f48c144c58f6d23e850a1978a6fe05887103b17
https://github.com/llvm/llvm-project/commit/5f48c144c58f6d23e850a1978a6fe05887103b17
Author: guopeilin <guopeilin1 at huawei.com>
Date: 2021-09-06 (Mon, 06 Sep 2021)
Changed paths:
M llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
M llvm/test/CodeGen/AArch64/GlobalISel/opt-fold-xor-tbz-tbnz.mir
Log Message:
-----------
[AArch64][GlobalISel] Use ZExtValue for zext(xor) when invert tb(n)z
Currently, we use SExtValue to decide whether to invert tbz or tbnz.
However, for the case zext (xor x, c), we should use ZExt rather
than SExt otherwise we will generate totally opposite branches.
Reviewed By: paquette
Differential Revision: https://reviews.llvm.org/D108755
More information about the All-commits
mailing list