[PATCH] D46278: [AArch64] Fold B = csel A, A into B = COPY A
Jon Roelofs via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 29 08:37:25 PDT 2021
jroelofs added inline comments.
================
Comment at: llvm/lib/Target/AArch64/AArch64InstrInfo.cpp:920
+ if (TrueDef && FalseDef)
+ return TrueDef == FalseDef;
+
----------------
I found a case that throws a wrench in this strategy:
```
early-clobber %66:gpr64common, %67:gpr64 = LDRXpre %38:gpr64common(tied-def 0), 16
%74:gpr64 = CSELXr killed %67:gpr64, %66:gpr64common, 11, implicit $nzcv
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D46278/new/
https://reviews.llvm.org/D46278
More information about the llvm-commits
mailing list