diff options
author | Geoff Berry <gberry@codeaurora.org> | 2016-09-27 22:17:27 +0000 |
---|---|---|
committer | Geoff Berry <gberry@codeaurora.org> | 2016-09-27 22:17:27 +0000 |
commit | b124331db7eda09e613d86f68376fcc67c677937 (patch) | |
tree | 91aa88f6321c028bc16aa91464451aa87dcc1523 /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | 1142147e418d0f39ba1717ec96dd23b7f748892c (diff) | |
download | llvm-b124331db7eda09e613d86f68376fcc67c677937.zip llvm-b124331db7eda09e613d86f68376fcc67c677937.tar.gz llvm-b124331db7eda09e613d86f68376fcc67c677937.tar.bz2 |
[TargetRegisterInfo, AArch64] Add target hook for isConstantPhysReg().
Summary:
The current implementation of isConstantPhysReg() checks for defs of
physical registers to determine if they are constant. Some
architectures (e.g. AArch64 XZR/WZR) have registers that are constant
and may be used as destinations to indicate the generated value is
discarded, preventing isConstantPhysReg() from returning true. This
change adds a TargetRegisterInfo hook that overrides the no defs check
for cases such as this.
Reviewers: MatzeB, qcolombet, t.p.northover, jmolloy
Subscribers: junbuml, aemerson, mcrosier, rengolin
Differential Revision: https://reviews.llvm.org/D24570
llvm-svn: 282543
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
0 files changed, 0 insertions, 0 deletions