R600: remove nonsense setPrefLoopAlignment
authorTom Stellard <thomas.stellard@amd.com>
Mon, 17 Dec 2012 15:14:53 +0000 (15:14 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 17 Dec 2012 15:14:53 +0000 (15:14 +0000)
The Align parameter is a power of two, so 16 results in 64K
alignment. Additional to that even 16 byte alignment doesn't
make any sense, so just remove it.

Patch by: Christian König

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Christian König <deathsimple@vodafone.de>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170341 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/R600/AMDILISelLowering.cpp

index 6a5d8416dcab6dfd1f0e387e764b4d2d665ab87f..8bfd30c6e3ed0a95533eecc7b153818c3efff77c 100644 (file)
@@ -217,7 +217,6 @@ void AMDGPUTargetLowering::InitAMDILLowering() {
 
   setSchedulingPreference(Sched::RegPressure);
   setPow2DivIsCheap(false);
-  setPrefLoopAlignment(16);
   setSelectIsExpensive(true);
   setJumpIsExpensive(true);