diff options
author | Jessica Paquette <jpaquette@apple.com> | 2019-06-03 20:47:20 +0000 |
---|---|---|
committer | Jessica Paquette <jpaquette@apple.com> | 2019-06-03 20:47:20 +0000 |
commit | 7500c97ce4bda8a0735b737231b26bde922620f5 (patch) | |
tree | 8e27aa30ae3cc868f71355fec0f69ace2c93953b /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | |
parent | bddab42fc763aead7aa07c3ed1974e39938d100e (diff) | |
download | llvm-7500c97ce4bda8a0735b737231b26bde922620f5.zip llvm-7500c97ce4bda8a0735b737231b26bde922620f5.tar.gz llvm-7500c97ce4bda8a0735b737231b26bde922620f5.tar.bz2 |
[AArch64][GlobalISel] Optimize G_FCMP + G_SELECT pairs when G_SELECT is fp
Instead of emitting all of the test stuff for a compare when it's only used by
a select, instead, just emit the compare + select. The select will use the
value of NZCV correctly, so we don't need to emit all of the test instructions
etc.
For now, only support fp selects which use G_FCMP. Also only support condition
codes which will only require one select to represent.
Also add a test.
Differential Revision: https://reviews.llvm.org/D62695
llvm-svn: 362446
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions