Skip to content
Commit 191507e0 authored by Marek Olsak's avatar Marek Olsak
Browse files

R600/SI: Don't generate non-existent LSHL, LSHR, ASHR B32 variants on VI



This can happen when a REV instruction is commuted.

The trick is not to define the _vi versions of instructions, which has these
consequences:
- code generation will always fail if a pseudo cannot be lowered
  (very useful to catch bugs where an unsupported instruction somehow makes
   it to the printer)
- ability to query if a pseudo can be lowered, which is done in commuteOpcode
  to prevent REV from commuting to non-REV on VI

Tested-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
llvm-svn: 227990
parent 7585a29b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment