[llvm] [Hexagon] Fix shift value when folding shl DAG node (PR #83853)

Ikhlas Ajbar via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 4 10:34:43 PST 2024


================

----------------
iajbar wrote:

If allocated registers change, this check will fail. 
; CHECK-NEXT:     r2 = addasl(r2,r1,#1)
; CHECK-NEXT:     r3 = asl(r1,#1)
What about using:  r[[REG1:[0-9]+]] and  r[[REG2:[0-9]+]] instead?

https://github.com/llvm/llvm-project/pull/83853


More information about the llvm-commits mailing list