AMDGPU: Use IsSSA property check instead of asserting on isSSA
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sun, 28 Jun 2020 20:11:48 +0000 (16:11 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 29 Jun 2020 14:05:23 +0000 (10:05 -0400)
commitd0b0b252e1e09f6203ca35ff87b58a2d4eafb8aa
tree7df15425be82fa9f6e815f89a49f752817d3a5a4
parent0c332a7784c649038bd237a60fa18b45a3dea90d
AMDGPU: Use IsSSA property check instead of asserting on isSSA

Also fix an SSA violation in a test the MIRParser/verifier fails to
catch. It's illegal to define a subregister in SSA. For the purpose of
the test, it just needs to define the super-register to use the
subregister in the use operand.
llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp
llvm/lib/Target/AMDGPU/R600OptimizeVectorRegisters.cpp
llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
llvm/test/CodeGen/AMDGPU/merge-load-store-vreg.mir