[PATCH] D70896: AMDGPU: Avoid folding 2 constant operands into an SALU operation

David Stuttard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 2 05:16:04 PST 2019


dstuttard added reviewers: arsenm, foad.
dstuttard added a comment.

I would have preferred to have put this check into isImmOperandLegal in SIInstrInfo.cpp - but that produced lots of lit regressions. Looks like commute operations use this function even when they are swapping rather than replacing the operand (which breaks).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70896/new/

https://reviews.llvm.org/D70896





More information about the llvm-commits mailing list