diff options
author | Amara Emerson <amara@apple.com> | 2023-07-10 00:25:49 -0700 |
---|---|---|
committer | Amara Emerson <amara@apple.com> | 2023-07-10 01:03:12 -0700 |
commit | 3a80bdb3169192361a6113397d9967a880de44bd (patch) | |
tree | 75f02418f4ff51cb1b4440507e7cdb3f0e508428 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 0ab14951db0dba2b5d678220c3036c592062a3b1 (diff) | |
download | llvm-3a80bdb3169192361a6113397d9967a880de44bd.zip llvm-3a80bdb3169192361a6113397d9967a880de44bd.tar.gz llvm-3a80bdb3169192361a6113397d9967a880de44bd.tar.bz2 |
[GlobalISel] Remove an erroneous oneuse check in the G_ADD reassociation combine.
This check was unnecessary/incorrect, it was already being done by the target
hook default implementation, and the one in the matcher was checking for a
completely different thing. This change:
1) Removes the check and updates affected tests which now do some more reassociations.
2) Modifies the AMDGPU hooks which were stubbed with "return true" to also do the oneuse
check. Not sure why I didn't do this the first time.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions