[PATCH] D61812: [AMDGPU] Fixed handling of imemdiate i1 literals
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun May 12 16:37:39 PDT 2019
rampitec marked an inline comment as done.
rampitec added inline comments.
================
Comment at: lib/Target/AMDGPU/SIInstrInfo.cpp:2526
switch (Imm.getBitWidth()) {
+ case 1: // This likely will be a condition code mask.
+ return false;
----------------
arsenm wrote:
> I don’t understand where this is coming from. There should be no 1-bit immediates anywhere?
Combiner sometimes produces "xor x, true", and even "add x, true". This is not the first time we hit it, we have even implemented lowering.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61812/new/
https://reviews.llvm.org/D61812
More information about the llvm-commits
mailing list