summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveVariables.cpp
diff options
context:
space:
mode:
authorYonghong Song <yhs@fb.com>2018-02-23 23:49:19 +0000
committerYonghong Song <yhs@fb.com>2018-02-23 23:49:19 +0000
commit3a564a8f6e9b60553ad4b7bebeee1ec8065b2a0f (patch)
treecb47c20d7ce5868f61c91296f1449440db738845 /llvm/lib/CodeGen/LiveVariables.cpp
parentec84e2f1b08c297f82f517bc5c904dee78c2a6bc (diff)
downloadbcm5719-llvm-3a564a8f6e9b60553ad4b7bebeee1ec8065b2a0f.tar.gz
bcm5719-llvm-3a564a8f6e9b60553ad4b7bebeee1ec8065b2a0f.zip
bpf: Tighten the immediate predication for 32-bit alu instructions
These 32-bit ALU insn patterns which takes immediate as one operand were initially added to enable AsmParser support, and the AsmMatcher uses "ins" and "outs" fields to deduct the operand constraint. However, the instruction selector doesn't work the same as AsmMatcher. The selector will use the "pattern" field for which we are not setting the predication for immediate operands correctly. Without this patch, i32 would eventually means all i32 operands are valid, both imm and gpr, while these patterns should allow imm only. Signed-off-by: Jiong Wang <jiong.wang@netronome.com> Reviewed-by: Yonghong Song <yhs@fb.com> llvm-svn: 325980
Diffstat (limited to 'llvm/lib/CodeGen/LiveVariables.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud